From 689549bb1f85f2ff7e1710d527dc2ead4cb3bb5b Mon Sep 17 00:00:00 2001 From: Jack Wilsdon Date: Mon, 28 Oct 2024 17:52:09 +0000 Subject: osc: notify: fix crash with no message Closes #1866 --- notify.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'notify.c') diff --git a/notify.c b/notify.c index 58388b1c..c77c0606 100644 --- a/notify.c +++ b/notify.c @@ -473,7 +473,8 @@ notify_notify(struct terminal *term, struct notification *notif) "urgency", "muted", "sound-name", "expire-time", "replace-id", "action-argument"}, (const char *[]){ - app_id, term->window_title, icon_name_or_path, title, body, + app_id, term->window_title, icon_name_or_path, title, + body != NULL ? body : "", notif->category != NULL ? notif->category : "", urgency_str, notif->muted ? "true" : "false", notif->sound_name != NULL ? notif->sound_name : "", -- cgit v1.3