Don't ever pass NULL to soup_uri_new

Fixes: https://bugs.launchpad.net/midori/+bug/930630
This commit is contained in:
Christian Dywan 2012-04-05 23:26:19 +02:00
parent b5d5c17396
commit c4d1a96ca4

View 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;