diff options
Diffstat (limited to 'src/tool_operhlp.c')
-rw-r--r-- | src/tool_operhlp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_operhlp.c b/src/tool_operhlp.c index 9b70edd23..01a24b433 100644 --- a/src/tool_operhlp.c +++ b/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); |