[Xfce4-commits] [xfce/thunar] 01/01: Avoid use of invalid pointer values in UCA (Bug #14464)
noreply at xfce.org
noreply at xfce.org
Tue Jun 19 01:28:13 CEST 2018
This is an automated email from the git hooks/post-receive script.
a n d r e p u s h e d a c o m m i t t o b r a n c h m a s t e r
in repository xfce/thunar.
commit 510c8779584edf2f113c379cb024370cf844412b
Author: Andre Miranda <andreldm at xfce.org>
Date: Mon Jun 18 20:25:55 2018 -0300
Avoid use of invalid pointer values in UCA (Bug #14464)
---
plugins/thunar-uca/thunar-uca-provider.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/plugins/thunar-uca/thunar-uca-provider.c b/plugins/thunar-uca/thunar-uca-provider.c
index a1b878b..53dbc8d 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))
{
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list