aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarty Kuhrt <marty@kuhrt.net>2008-06-01 16:01:37 +0000
committerMarty Kuhrt <marty@kuhrt.net>2008-06-01 16:01:37 +0000
commit01e1c85304280426b8d69b0b98549a7512358211 (patch)
tree2105d0487155809aec05e30c99b6b252b51db412
parent4774582dfb23d45f078f1f5342aaab3a20db71b6 (diff)
return CURLE_OK instead of CURLE_FAILED_INIT if PARAM_HEKP_REQUESTED returned by getparameter
-rw-r--r--src/main.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 0a00efc93..b5c4067ae 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3915,11 +3915,14 @@ operate(struct Configurable *config, int argc, argv_item_t argv[])
res = getparameter(flag, nextarg, &passarg, config);
if(res) {
- const char *reason = param2text(res);
- if(res != PARAM_HELP_REQUESTED)
+ int retval = CURLE_OK;
+ if(res != PARAM_HELP_REQUESTED) {
+ const char *reason = param2text(res);
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 */