1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-15 14:05:03 -05: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:
Daniel Stenberg 2020-06-18 00:51:37 +02:00
parent 185890d5d7
commit ada7bd1191
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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 &&