diff options
author | des <des@FreeBSD.org> | 2002-02-05 21:32:16 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2002-02-05 21:32:16 +0000 |
commit | 95a4ae283045827d7b72aa026dbcc7bf9ff6745a (patch) | |
tree | db9d00726cf4083c75d24ab51a1617102612e2de | |
parent | c6a128a4b907ab2e60ff122305aee878371b5e92 (diff) | |
download | FreeBSD-src-95a4ae283045827d7b72aa026dbcc7bf9ff6745a.zip FreeBSD-src-95a4ae283045827d7b72aa026dbcc7bf9ff6745a.tar.gz |
Eliminate a redundant loop.
-rw-r--r-- | lib/libfetch/fetch.c | 3 |
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: |