mirror of
https://github.com/curl/curl.git
synced 2026-06-18 02:25:46 +03:00
tool_getparam: fix "Ignored Return Value"
Follow-up from a300879b63
Pointed out by CodeSonar
Closes #15740
This commit is contained in:
parent
7347ddc9e2
commit
cffbbc693e
1 changed files with 2 additions and 2 deletions
|
|
@ -1051,8 +1051,8 @@ static ParameterError parse_url(struct GlobalConfig *global,
|
|||
/* fill in the URL */
|
||||
err = getstr(&url->url, nextarg, DENY_BLANK);
|
||||
url->flags |= GETOUT_URL;
|
||||
if((++config->num_urls > 1) && (config->etag_save_file ||
|
||||
config->etag_compare_file)) {
|
||||
if(!err && (++config->num_urls > 1) && (config->etag_save_file ||
|
||||
config->etag_compare_file)) {
|
||||
errorf(global, "The etag options only work on a single URL");
|
||||
return PARAM_BAD_USE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue