[libsoup] soup_uri_copy_host: always set the path to something non-NULL
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] soup_uri_copy_host: always set the path to something non-NULL
- Date: Mon, 6 Feb 2012 22:14:35 +0000 (UTC)
commit 9a7fee1ef398877d0950ab66837ecb25fe1f960c
Author: Simon McVittie <simon mcvittie collabora co uk>
Date: Fri Feb 3 17:47:54 2012 +0000
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
libsoup/soup-uri.c | 4 +---
1 files changed, 1 insertions(+), 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]