[Xfce4-commits] <midori:master> Check if _midori_web_view_load_icon actually has a URI

Christian Dywan noreply at xfce.org
Sat Mar 12 21:10:02 CET 2011


Updating branch refs/heads/master
         to 1bedc8a76cb95f6f37dc606a101136e127a25225 (commit)
       from 9ca127102025df8f4096d820d1e6a9b25fc83f07 (commit)

commit 1bedc8a76cb95f6f37dc606a101136e127a25225
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sat Mar 12 21:07:37 2011 +0100

    Check if _midori_web_view_load_icon actually has a URI
    
    A blank page wouldn't have one.

 midori/midori-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/midori/midori-view.c b/midori/midori-view.c
index b252282..0e7558e 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)
         {



More information about the Xfce4-commits mailing list