]> spindle.queued.net Git - midori/commitdiff
Don't ever pass NULL to soup_uri_new
authorChristian Dywan <christian@twotoasts.de>
Thu, 5 Apr 2012 21:26:19 +0000 (23:26 +0200)
committerChristian Dywan <christian@twotoasts.de>
Thu, 5 Apr 2012 21:26:19 +0000 (23:26 +0200)
Fixes: https://bugs.launchpad.net/midori/+bug/930630
midori/main.c

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