mirror of
https://github.com/curl/curl.git
synced 2025-03-01 15:15:34 +08:00
src/tool_operhlp.c: fix value stored to 'uerr' is never read
Ref: https://github.com/curl/curl/pull/10974#issuecomment-1510461343 Reported-by: Viktor Szakats Closes #10982
This commit is contained in:
parent
9c543de0ec
commit
8ff820388f
@ -110,7 +110,7 @@ CURLcode add_file_name_to_url(CURL *curl, char **inurlp, const char *filename)
|
||||
goto fail;
|
||||
}
|
||||
uerr = curl_url_get(uh, CURLUPART_QUERY, &query, 0);
|
||||
if(query) {
|
||||
if(!uerr && query) {
|
||||
curl_free(query);
|
||||
curl_free(path);
|
||||
curl_url_cleanup(uh);
|
||||
|
Loading…
Reference in New Issue
Block a user