summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 b26cad0..bc803d5 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;
OpenPOWER on IntegriCloud