[Xfce4-commits] <midori:master> Don't ever pass NULL to soup_uri_new

Christian Dywan noreply at xfce.org
Thu Apr 5 23:38:01 CEST 2012


Updating branch refs/heads/master
         to c4d1a96ca4366490f153c3defcd5ded85da61422 (commit)
       from b5d5c17396d5b3dde434afda636bc04cae41f64d (commit)

commit c4d1a96ca4366490f153c3defcd5ded85da61422
Author: Christian Dywan <christian at twotoasts.de>
Date:   Thu Apr 5 23:26:19 2012 +0200

    Don't ever pass NULL to soup_uri_new
    
    Fixes: https://bugs.launchpad.net/midori/+bug/930630

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

diff --git a/midori/main.c b/midori/main.c
index 3a4c917..f777346 100644
--- a/midori/main.c
+++ b/midori/main.c
@@ -979,7 +979,7 @@ midori_soup_session_settings_accept_language_cb (SoupSession*       session,
         SoupURI* destination = soup_message_get_uri (msg);
         if (referer && destination && !strstr (referer, destination->host))
         {
-            SoupURI* stripped_uri = soup_uri_new (referer);
+            SoupURI* stripped_uri = soup_uri_new (katze_str_non_null (referer));
             if (stripped_uri != NULL)
             {
                 gchar* stripped_referer;


More information about the Xfce4-commits mailing list