summaryrefslogtreecommitdiff
path: root/lib/libfetch/fetch.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libfetch/fetch.c')
-rw-r--r--lib/libfetch/fetch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libfetch/fetch.c b/lib/libfetch/fetch.c
index b26cad08a59b..bc803d5f8417 100644
--- a/lib/libfetch/fetch.c
+++ b/lib/libfetch/fetch.c
@@ -314,6 +314,8 @@ fetchParseURL(char *URL)
*/
if (URL[1] == '/')
URL = (p += 2);
+ } else {
+ p = URL;
}
if (!*URL || *URL == '/')
goto nohost;