diff options
| author | Jack Wilsdon <jack@wilsdon.me> | 2024-10-28 17:52:09 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2024-10-31 06:03:04 +0000 |
| commit | 689549bb1f85f2ff7e1710d527dc2ead4cb3bb5b (patch) | |
| tree | 11edc5569d0c4f89d9ced6369f11a8ff5f88a681 /notify.c | |
| parent | docs: document more default bindings in search scrollback mode. (diff) | |
osc: notify: fix crash with no message
Closes #1866
Diffstat (limited to 'notify.c')
| -rw-r--r-- | notify.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 : "", |
