[geany/geany-plugins] 6ec959: gproject: Fix possible use of an uninitialized variable (oops)

Colomban Wendling git-noreply at xxxxx
Tue Jan 28 14:28:24 UTC 2014


Branch:      refs/heads/master
Author:      Colomban Wendling <ban at herbesfolles.org>
Committer:   Colomban Wendling <ban at herbesfolles.org>
Date:        Tue, 28 Jan 2014 14:28:24 UTC
Commit:      6ec959ced27f263cd6763248fd58bf9b0284804e
             https://github.com/geany/geany-plugins/commit/6ec959ced27f263cd6763248fd58bf9b0284804e

Log Message:
-----------
gproject: Fix possible use of an uninitialized variable (oops)


Modified Paths:
--------------
    gproject/src/gproject-sidebar.c

Modified: gproject/src/gproject-sidebar.c
2 files changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -502,7 +502,7 @@ static void create_branch(gint level, GSList *leaf_list, GtkTreeIter *parent,
 	{
 		GtkTreeIter iter;
 		gchar **path_arr = elem->data;
-		GIcon *icon;
+		GIcon *icon = NULL;
 		gchar *content_type = g_content_type_guess(path_arr[level], NULL, 0, NULL);
 
 		if (content_type)



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list