Fixed situations where text may be uninitialized
This commit is contained in:
parent
e4fa39ed8c
commit
cb2241574d
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user