mirror of
https://github.com/curl/curl.git
synced 2026-04-15 01:01:41 +03:00
urlapi: remove two variable assigns
To please scan-build:
urlapi.c:1163:9: warning: Value stored to 'qlen' is never read
qlen = Curl_dyn_len(&enc);
^ ~~~~~~~~~~~~~~~~~~
urlapi.c:1164:9: warning: Value stored to 'query' is never read
query = u->query = Curl_dyn_ptr(&enc);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Follow-up to 7d6cf06f57
Closes #9777
This commit is contained in:
parent
8698825106
commit
b15ca64bb0
1 changed files with 1 additions and 2 deletions
|
|
@ -1160,8 +1160,7 @@ static CURLUcode parseurl(const char *url, CURLU *u, unsigned int flags)
|
|||
result = CURLUE_OUT_OF_MEMORY;
|
||||
goto fail;
|
||||
}
|
||||
qlen = Curl_dyn_len(&enc);
|
||||
query = u->query = Curl_dyn_ptr(&enc);
|
||||
u->query = Curl_dyn_ptr(&enc);
|
||||
}
|
||||
else {
|
||||
u->query = Curl_memdup(query + 1, qlen);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue