[Xfce4-commits] <midori:master> sokoke_external_uri should return FALSE for non-URIs

Christian Dywan noreply at xfce.org
Thu Oct 21 21:10:03 CEST 2010


Updating branch refs/heads/master
         to 9f30695ca396736fbe98ea39c38ed8ba37b8fe63 (commit)
       from 936758afdcbedd7febc15c530134aa4afa670833 (commit)

commit 9f30695ca396736fbe98ea39c38ed8ba37b8fe63
Author: Christian Dywan <christian at twotoasts.de>
Date:   Thu Oct 21 20:45:12 2010 +0200

    sokoke_external_uri should return FALSE for non-URIs
    
    In particular search key words.

 midori/sokoke.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/midori/sokoke.c b/midori/sokoke.c
index 9a0d960..bce377b 100644
--- a/midori/sokoke.c
+++ b/midori/sokoke.c
@@ -749,6 +749,9 @@ sokoke_external_uri (const gchar* uri)
         return FALSE;
 
     scheme = g_uri_parse_scheme (uri);
+    if (!scheme)
+        return FALSE;
+
     info = g_app_info_get_default_for_uri_scheme (scheme);
     g_free (scheme);
     if (info)



More information about the Xfce4-commits mailing list