From 1bedc8a76cb95f6f37dc606a101136e127a25225 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 12 Mar 2011 21:07:37 +0100 Subject: [PATCH] Check if _midori_web_view_load_icon actually has a URI A blank page wouldn't have one. --- midori/midori-view.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/midori/midori-view.c b/midori/midori-view.c index b2522826..0e7558e3 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -866,7 +866,7 @@ _midori_web_view_load_icon (MidoriView* view) icon_uri = g_strdup (view->icon_uri); if ((icon_uri && g_str_has_prefix (icon_uri, "http")) - || g_str_has_prefix (view->uri, "http")) + || (view->uri && g_str_has_prefix (view->uri, "http"))) { if (!icon_uri) { -- 2.39.5