mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
return CURLE_OK instead of CURLE_FAILED_INIT if PARAM_HEKP_REQUESTED returned by getparameter
This commit is contained in:
parent
4774582dfb
commit
01e1c85304
@ -3915,11 +3915,14 @@ operate(struct Configurable *config, int argc, argv_item_t argv[])
|
||||
|
||||
res = getparameter(flag, nextarg, &passarg, config);
|
||||
if(res) {
|
||||
int retval = CURLE_OK;
|
||||
if(res != PARAM_HELP_REQUESTED) {
|
||||
const char *reason = param2text(res);
|
||||
if(res != PARAM_HELP_REQUESTED)
|
||||
helpf(config->errors, "option %s: %s\n", origopt, reason);
|
||||
retval = CURLE_FAILED_INIT;
|
||||
}
|
||||
clean_getout(config);
|
||||
return CURLE_FAILED_INIT;
|
||||
return retval;
|
||||
}
|
||||
|
||||
if(passarg) /* we're supposed to skip this */
|
||||
|
Loading…
Reference in New Issue
Block a user