소스 검색

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
Daniel Stenberg 1 년 전
부모
커밋
8ff820388f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/tool_operhlp.c

+ 1 - 1
src/tool_operhlp.c

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