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:
Daniel Stenberg 2022-10-21 09:41:54 +02:00
parent 8698825106
commit b15ca64bb0
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -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);