diff options
author | Steve Holme <steve_holme@hotmail.com> | 2014-03-01 13:00:31 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2014-03-01 13:03:20 +0000 |
commit | 5513bbd5c38e5128dd943c28417da29f2c6f9101 (patch) | |
tree | a1413ff88a25620d170e84c7c000237bfc0fdb80 /src/tool_getparam.c | |
parent | 1f077181234525832e0fcae38f7ff4f344f4b010 (diff) | |
download | curl-5513bbd5c38e5128dd943c28417da29f2c6f9101.tar.gz |
tool: Moved --stderr to the global config
Diffstat (limited to 'src/tool_getparam.c')
-rw-r--r-- | src/tool_getparam.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/tool_getparam.c b/src/tool_getparam.c index d858ff5f3..c6377ed60 100644 --- a/src/tool_getparam.c +++ b/src/tool_getparam.c @@ -681,14 +681,14 @@ ParameterError getparameter(char *flag, /* f or -long-flag */ if(!newfile) warnf(config, "Failed to open %s!\n", nextarg); else { - if(config->errors_fopened) - fclose(config->errors); - config->errors = newfile; - config->errors_fopened = TRUE; + if(global->errors_fopened) + fclose(global->errors); + global->errors = newfile; + global->errors_fopened = TRUE; } } else - config->errors = stdout; + global->errors = stdout; break; case 'w': /* --interface */ /* interface */ @@ -1875,9 +1875,9 @@ ParameterError parse_args(struct GlobalConfig *config, int argc, const char *reason = param2text(result); if(!curlx_strequal(":", orig_opt)) - helpf(operation->errors, "option %s: %s\n", orig_opt, reason); + helpf(config->errors, "option %s: %s\n", orig_opt, reason); else - helpf(operation->errors, "%s\n", reason); + helpf(config->errors, "%s\n", reason); } return result; |