lib/fetch/fetch.c: CID 62738 (unused value)

This commit is contained in:
Juan RP 2014-10-05 12:01:25 +02:00
parent 89b8c61c47
commit 44f5fb107e

View File

@ -378,7 +378,6 @@ fetchParseURL(const char *URL)
if (*URL == '/') { if (*URL == '/') {
pre_quoted = 0; pre_quoted = 0;
strcpy(u->scheme, SCHEME_FILE); strcpy(u->scheme, SCHEME_FILE);
p = URL;
goto quote_doc; goto quote_doc;
} }
if (strncmp(URL, "file:", 5) == 0) { if (strncmp(URL, "file:", 5) == 0) {
@ -389,7 +388,7 @@ fetchParseURL(const char *URL)
url_seterr(URL_MALFORMED); url_seterr(URL_MALFORMED);
goto ouch; goto ouch;
} }
p = URL + 2; URL += 2;
goto quote_doc; goto quote_doc;
} }
if (strncmp(URL, "http:", 5) == 0 || if (strncmp(URL, "http:", 5) == 0 ||
@ -408,7 +407,6 @@ fetchParseURL(const char *URL)
goto ouch; goto ouch;
} }
URL += 2; URL += 2;
p = URL;
goto find_user; goto find_user;
} }
if (strncmp(URL, "ftp:", 4) == 0) { if (strncmp(URL, "ftp:", 4) == 0) {
@ -420,7 +418,6 @@ fetchParseURL(const char *URL)
goto ouch; goto ouch;
} }
URL += 2; URL += 2;
p = URL;
goto find_user; goto find_user;
} }