]> spindle.queued.net Git - midori/commitdiff
Check if _midori_web_view_load_icon actually has a URI
authorChristian Dywan <christian@twotoasts.de>
Sat, 12 Mar 2011 20:07:37 +0000 (21:07 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sat, 12 Mar 2011 20:10:01 +0000 (21:10 +0100)
A blank page wouldn't have one.

midori/midori-view.c

index b2522826a236e304c3180be7400823bc8b16a26b..0e7558e326fc497e6c3bc680525e4cd94cfcb6e0 100644 (file)
@@ -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)
         {