summaryrefslogtreecommitdiffstats
path: root/lib/libfetch/fetch.c
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2002-02-05 21:32:16 +0000
committerdes <des@FreeBSD.org>2002-02-05 21:32:16 +0000
commit95a4ae283045827d7b72aa026dbcc7bf9ff6745a (patch)
treedb9d00726cf4083c75d24ab51a1617102612e2de /lib/libfetch/fetch.c
parentc6a128a4b907ab2e60ff122305aee878371b5e92 (diff)
downloadFreeBSD-src-95a4ae283045827d7b72aa026dbcc7bf9ff6745a.zip
FreeBSD-src-95a4ae283045827d7b72aa026dbcc7bf9ff6745a.tar.gz
Eliminate a redundant loop.
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