summaryrefslogtreecommitdiff
path: root/lib/libfetch/fetch.c
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2002-02-05 21:32:16 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2002-02-05 21:32:16 +0000
commit551858f0b067e966f6a1e507872caff123fd140c (patch)
treedb9d00726cf4083c75d24ab51a1617102612e2de /lib/libfetch/fetch.c
parent582ec34cd83de37af4dab174f7c1f61ef9e043fe (diff)
Notes
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 5fb44713cf8b..66b6fe08b6df 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: