From 09498f2473f168bb05f45cc5f0c6e36b7847bc8b Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Fri, 23 Oct 2009 18:07:19 +0200 Subject: [PATCH] Initialize icon theme in midori_view_update_icon to avoid warning --- midori/midori-view.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/midori/midori-view.c b/midori/midori-view.c index 95006fec..23b9d7bf 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -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", -- 2.39.5