summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2012-02-03 17:47:54 +0000
committerDan Winship <danw@gnome.org>2012-02-06 17:12:26 -0500
commit9a7fee1ef398877d0950ab66837ecb25fe1f960c (patch)
tree1bad07141a70ccc9baf3857376a433b2920a738a
parent6679ab2a4ba2bf6bb6a4c7065fbc78c84461b97d (diff)
downloadlibsoup-9a7fee1ef398877d0950ab66837ecb25fe1f960c.tar.gz
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 <simon.mcvittie@collabora.co.uk> Bug: https://bugzilla.gnome.org/show_bug.cgi?id=667637 Bug-NB: NB#294977
-rw-r--r--libsoup/soup-uri.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libsoup/soup-uri.c b/libsoup/soup-uri.c
index f091a827..f53decdb 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;
}