Fixed situations where text may be uninitialized

This commit is contained in:
Scoopta 2019-08-28 17:37:09 -07:00
parent e4fa39ed8c
commit cb2241574d

View File

@ -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); 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); const gchar* icon_path = gtk_icon_info_get_filename(info);
text = utils_concat(4, "img:", icon_path, ":text:", name); text = utils_concat(4, "img:", icon_path, ":text:", name);
} else {
text = strdup(name);
} }
} else { } else {
text = strdup(name); text = strdup(name);