mirror of
https://github.com/curl/curl.git
synced 2026-06-02 00:34:16 +03:00
urlapi: don't set value which is never read
In the CURLUPART_URL case, there is no codepath which invokes url decoding so remove the assignment of the urldecode variable. This fixes the deadstore bug-report from clang static analysis. Closes #3015 Reviewed-by: Daniel Stenberg <daniel@haxx.se>
This commit is contained in:
parent
056cc37ed4
commit
522e647cc5
1 changed files with 0 additions and 1 deletions
|
|
@ -970,7 +970,6 @@ CURLUcode curl_url_get(CURLU *u, CURLUPart what,
|
|||
char *scheme;
|
||||
char *options = u->options;
|
||||
char *port = u->port;
|
||||
urldecode = FALSE; /* not for the whole thing */
|
||||
if(u->scheme && strcasecompare("file", u->scheme)) {
|
||||
url = aprintf("file://%s%s%s",
|
||||
u->path,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue