]> spindle.queued.net Git - midori/commitdiff
Don't ever pass NULL to soup_uri_set_path (not _new)
authorChristian Dywan <christian@twotoasts.de>
Fri, 6 Apr 2012 13:48:53 +0000 (15:48 +0200)
committerChristian Dywan <christian@twotoasts.de>
Fri, 6 Apr 2012 13:48:53 +0000 (15:48 +0200)
Follow-up on https://bugs.launchpad.net/midori/+bug/930630

midori/main.c

index f77734685994df9d214518e6dbec2e7ad2abfaab..2ec55990aba39734d4045cb15e3870099f859f94 100644 (file)
@@ -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);