mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08:00
tool_getparam: repair the error message for unknown flag
Follow-up to 9e5669f388
Detected by Coverity CID 1464582 ("Logically dead code")
Closes #5577
This commit is contained in:
parent
185890d5d7
commit
ada7bd1191
@ -2303,7 +2303,8 @@ ParameterError parse_args(struct GlobalConfig *global, int argc,
|
||||
config);
|
||||
}
|
||||
|
||||
curlx_unicodefree(orig_opt);
|
||||
if(!result)
|
||||
curlx_unicodefree(orig_opt);
|
||||
}
|
||||
|
||||
if(result && result != PARAM_HELP_REQUESTED &&
|
||||
|
Loading…
Reference in New Issue
Block a user