summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/fetch.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libfetch/fetch.c')
-rw-r--r--lib/libfetch/fetch.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libfetch/fetch.c b/lib/libfetch/fetch.c
index 5fb4471..66b6fe0 100644
--- a/lib/libfetch/fetch.c
+++ b/lib/libfetch/fetch.c
@@ -367,8 +367,7 @@ fetchParseURL(const char *URL)
_url_seterr(URL_BAD_PORT);
goto ouch;
}
- while (*p && (*p != '/'))
- p++;
+ p = q;
}
nohost:
OpenPOWER on IntegriCloud