diff options
author | Andre Miranda <andreldm@xfce.org> | 2018-06-18 20:25:55 -0300 |
---|---|---|
committer | Andre Miranda <andreldm@xfce.org> | 2018-06-18 20:25:55 -0300 |
commit | 510c8779584edf2f113c379cb024370cf844412b (patch) | |
tree | ab574658d5f40d573d6c1a297b506e3516c6c82e /plugins | |
parent | c1a28b6cf93fac78ab19d9a889c1f98f83c18128 (diff) | |
download | thunar-510c8779584edf2f113c379cb024370cf844412b.tar.gz |
Avoid use of invalid pointer values in UCA (Bug #14464)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/thunar-uca/thunar-uca-provider.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/plugins/thunar-uca/thunar-uca-provider.c b/plugins/thunar-uca/thunar-uca-provider.c index a1b878b2..53dbc8d1 100644 --- a/plugins/thunar-uca/thunar-uca-provider.c +++ b/plugins/thunar-uca/thunar-uca-provider.c @@ -201,16 +201,17 @@ thunar_uca_provider_get_file_menu_items (ThunarxMenuProvider *menu_provider, GList *items = NULL; GList *paths; GList *lp; - gchar *tooltip; - gchar *label; - gchar *unique_id; - gchar *name; - gchar *icon_name = NULL; - GIcon *gicon = NULL; paths = thunar_uca_model_match (uca_provider->model, files); for (lp = g_list_last (paths); lp != NULL; lp = lp->prev) { + gchar *unique_id = NULL; + gchar *name = NULL; + gchar *label = NULL; + gchar *tooltip = NULL; + gchar *icon_name = NULL; + GIcon *gicon = NULL; + /* try to lookup the tree iter for the specified tree path */ if (gtk_tree_model_get_iter (GTK_TREE_MODEL (uca_provider->model), &iter, lp->data)) { |