]> spindle.queued.net Git - midori/commitdiff
Check in midori_search_action_get_icon if icon_name is given
authorAndré Stösel <andre@stoesel.de>
Tue, 3 May 2011 18:17:00 +0000 (20:17 +0200)
committerChristian Dywan <christian@twotoasts.de>
Tue, 3 May 2011 18:17:00 +0000 (20:17 +0200)
midori/midori-searchaction.c

index e55fb774aba51ca8563576f41e3dd1faf5c73fda..4aa1bb7ab5a5ba181406a7f7dbebd29eaa0d9c12 100644 (file)
@@ -412,6 +412,8 @@ midori_search_action_get_icon (KatzeItem*    item,
     if ((icon = katze_item_get_uri (item)) && (g_strstr_len (icon, 8, "://")))
         return katze_load_cached_icon (icon, widget);
 
+    if (icon_name == NULL)
+        return NULL;
 
     screen = gtk_widget_get_screen (widget);
     icon_theme = gtk_icon_theme_get_for_screen (screen);