]> Pileus Git - ~andy/gtk/commitdiff
iconfactory: Initialize varibale to NULL in failure path
authorBenjamin Otte <otte@redhat.com>
Thu, 9 Sep 2010 21:09:07 +0000 (23:09 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 26 Sep 2010 13:11:42 +0000 (15:11 +0200)
Otherwise we use random memory and that is not good.

gtk/gtkiconfactory.c

index 4f854d8395a9a121a7ae99e8009a430be211a2ed..92fea101198dfeedad66e66712a2f1522d490e06 100644 (file)
@@ -1463,6 +1463,8 @@ render_icon_name_pixbuf (GtkIconSource    *icon_source,
           tmp_pixbuf = gtk_icon_info_load_icon (info, &error);
           gtk_icon_info_free (info);
         }
+      else
+        tmp_pixbuf = NULL;
     }
   else
     {