diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-06-18 00:51:37 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-06-18 13:59:42 +0200 |
commit | ada7bd119179af1c7e206579c86ec6ea1b72996c (patch) | |
tree | 3e8cf9c5c15032f3797863491efe0fa7abf70707 /src | |
parent | 185890d5d793cc06b801f0966327914bfb980b84 (diff) | |
download | curl-ada7bd119179af1c7e206579c86ec6ea1b72996c.tar.gz |
tool_getparam: repair the error message for unknown flag
Follow-up to 9e5669f3880674
Detected by Coverity CID 1464582 ("Logically dead code")
Closes #5577
Diffstat (limited to 'src')
-rw-r--r-- | src/tool_getparam.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tool_getparam.c b/src/tool_getparam.c index bd989fada..0cd11c479 100644 --- a/src/tool_getparam.c +++ b/src/tool_getparam.c @@ -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 && |