From ab9a1aa9ff764505ec283cef5e922d81688e08ec Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20St=C3=B6sel?= Date: Tue, 3 May 2011 20:17:00 +0200 Subject: [PATCH] Check in midori_search_action_get_icon if icon_name is given --- midori/midori-searchaction.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/midori/midori-searchaction.c b/midori/midori-searchaction.c index e55fb774..4aa1bb7a 100644 --- a/midori/midori-searchaction.c +++ b/midori/midori-searchaction.c @@ -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); -- 2.39.5