From 44f5fb107e491fb6d9982997e976a1a36b1d01bd Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 5 Oct 2014 12:01:25 +0200 Subject: [PATCH] lib/fetch/fetch.c: CID 62738 (unused value) --- lib/fetch/fetch.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/fetch/fetch.c b/lib/fetch/fetch.c index 7c733b1c..7ba18c76 100644 --- a/lib/fetch/fetch.c +++ b/lib/fetch/fetch.c @@ -378,7 +378,6 @@ fetchParseURL(const char *URL) if (*URL == '/') { pre_quoted = 0; strcpy(u->scheme, SCHEME_FILE); - p = URL; goto quote_doc; } if (strncmp(URL, "file:", 5) == 0) { @@ -389,7 +388,7 @@ fetchParseURL(const char *URL) url_seterr(URL_MALFORMED); goto ouch; } - p = URL + 2; + URL += 2; goto quote_doc; } if (strncmp(URL, "http:", 5) == 0 || @@ -408,7 +407,6 @@ fetchParseURL(const char *URL) goto ouch; } URL += 2; - p = URL; goto find_user; } if (strncmp(URL, "ftp:", 4) == 0) { @@ -420,7 +418,6 @@ fetchParseURL(const char *URL) goto ouch; } URL += 2; - p = URL; goto find_user; }