From 60d4ed3a1c835f9c75410d7da94b06d0544fb9ff Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 13 Mar 2024 14:12:49 +0530 Subject: [PATCH] ... --- kitty/desktop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/desktop.c b/kitty/desktop.c index c366b7893..6bc12ba81 100644 --- a/kitty/desktop.c +++ b/kitty/desktop.c @@ -194,7 +194,7 @@ queue_canberra_sound(const char *which_sound, const char *event_id, bool is_path current_sound.event_id = strdup(event_id); current_sound.media_role = strdup(media_role); current_sound.is_path = is_path; - current_sound.theme_name = strdup(theme_name); + current_sound.theme_name = theme_name ? strdup(theme_name) : NULL; pthread_mutex_unlock(&canberra_lock); while (true) { ssize_t ret = write(canberra_pipe_w, "w", 1);