From 9a7fee1ef398877d0950ab66837ecb25fe1f960c Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 3 Feb 2012 17:47:54 +0000 Subject: [PATCH] soup_uri_copy_host: always set the path to something non-NULL Not doing so is considered to be invalid. Signed-off-by: Simon McVittie Bug: https://bugzilla.gnome.org/show_bug.cgi?id=667637 Bug-NB: NB#294977 --- libsoup/soup-uri.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libsoup/soup-uri.c b/libsoup/soup-uri.c index f091a82..f53decd 100644 --- a/libsoup/soup-uri.c +++ b/libsoup/soup-uri.c @@ -1067,9 +1067,7 @@ soup_uri_copy_host (SoupURI *uri) dup->scheme = uri->scheme; dup->host = g_strdup (uri->host); dup->port = uri->port; - if (dup->scheme == SOUP_URI_SCHEME_HTTP || - dup->scheme == SOUP_URI_SCHEME_HTTPS) - dup->path = g_strdup (""); + dup->path = g_strdup (""); return dup; } -- 2.7.4