]> spindle.queued.net Git - midori/commitdiff
Initialize icon theme in midori_view_update_icon to avoid warning
authorChristian Dywan <christian@twotoasts.de>
Fri, 23 Oct 2009 16:07:19 +0000 (18:07 +0200)
committerChristian Dywan <christian@twotoasts.de>
Fri, 23 Oct 2009 16:07:19 +0000 (18:07 +0200)
midori/midori-view.c

index 95006fec165d65b4e25d01fb6c3c74aafc6b8980..23b9d7bf43b21cbc5659ebb445a0c6c785dc8212 100644 (file)
@@ -625,8 +625,8 @@ midori_view_update_icon (MidoriView* view,
     if (!icon)
     {
         GdkScreen* screen;
-        GtkIconTheme* icon_theme;
-        gchar** parts;
+        GtkIconTheme* icon_theme = NULL;
+        gchar** parts = NULL;
         gchar* icon_name;
 
         if ((screen = gtk_widget_get_screen (GTK_WIDGET (view))))
@@ -638,8 +638,6 @@ midori_view_update_icon (MidoriView* view,
                     katze_assign (parts, NULL);
             }
         }
-        else
-            parts = NULL;
 
         if (parts)
             icon = midori_view_mime_icon (icon_theme, "%s-%s",