[Xfce4-commits] <midori:master> Don't ever pass NULL to soup_uri_set_path (not _new)

Christian Dywan noreply at xfce.org
Fri Apr 6 15:56:01 CEST 2012


Updating branch refs/heads/master
         to f62964264e1e84b73e74166417189142f04b7ee2 (commit)
       from a01c0fd22421eac117af38c677fb3b6e91001b94 (commit)

commit f62964264e1e84b73e74166417189142f04b7ee2
Author: Christian Dywan <christian at twotoasts.de>
Date:   Fri Apr 6 15:48:53 2012 +0200

    Don't ever pass NULL to soup_uri_set_path (not _new)
    
    Follow-up on https://bugs.launchpad.net/midori/+bug/930630

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

diff --git a/midori/main.c b/midori/main.c
index f777346..2ec5599 100644
--- a/midori/main.c
+++ b/midori/main.c
@@ -979,11 +979,11 @@ 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 (katze_str_non_null (referer));
+            SoupURI* stripped_uri = soup_uri_new (referer);
             if (stripped_uri != NULL)
             {
                 gchar* stripped_referer;
-                soup_uri_set_path (stripped_uri, NULL);
+                soup_uri_set_path (stripped_uri, "");
                 soup_uri_set_query (stripped_uri, NULL);
                 stripped_referer = soup_uri_to_string (stripped_uri, FALSE);
                 soup_uri_free (stripped_uri);


More information about the Xfce4-commits mailing list