From cb2241574d8f379d14e4b5110bde3dbcf51e4eda Mon Sep 17 00:00:00 2001 From: Scoopta Date: Wed, 28 Aug 2019 17:37:09 -0700 Subject: [PATCH] Fixed situations where text may be uninitialized --- src/wofi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wofi.c b/src/wofi.c index d03d6fb..823955d 100644 --- a/src/wofi.c +++ b/src/wofi.c @@ -327,6 +327,8 @@ static void* do_drun(void* data) { GtkIconInfo* info = gtk_icon_theme_choose_icon(theme, (const gchar**) icon_names, image_size, 0); const gchar* icon_path = gtk_icon_info_get_filename(info); text = utils_concat(4, "img:", icon_path, ":text:", name); + } else { + text = strdup(name); } } else { text = strdup(name);