tool: Moved --stderr to the global config

This commit is contained in:
Steve Holme 2014-03-01 13:00:31 +00:00
parent 1f07718123
commit 5513bbd5c3
12 changed files with 69 additions and 68 deletions

View file

@ -30,7 +30,6 @@ void config_init(struct OperationConfig* config)
{
memset(config, 0, sizeof(struct OperationConfig));
config->errors = stderr; /* default errors to stderr */
config->postfieldsize = -1;
config->use_httpget = FALSE;
config->create_dirs = FALSE;
@ -116,10 +115,6 @@ static void free_config_fields(struct OperationConfig *config)
Curl_safefree(config->writeout);
if(config->errors_fopened && config->errors)
fclose(config->errors);
config->errors = NULL;
curl_slist_free_all(config->quote);
curl_slist_free_all(config->postquote);
curl_slist_free_all(config->prequote);