From c4d1a96ca4366490f153c3defcd5ded85da61422 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Thu, 5 Apr 2012 23:26:19 +0200 Subject: [PATCH] Don't ever pass NULL to soup_uri_new Fixes: https://bugs.launchpad.net/midori/+bug/930630 --- midori/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/midori/main.c b/midori/main.c index 3a4c9171..f7773468 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; -- 2.39.5