summaryrefslogtreecommitdiff
path: root/src/tool_cfgable.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-02-01 13:36:48 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-02-02 10:18:21 +0000
commit9ab0dc618fb33871d96dc5bd0607eb86ad5d8e02 (patch)
tree22df50cf6f8f9fd3aa6a9a4726a2ef904fb709a8 /src/tool_cfgable.c
parent83dbd0693677dae6d94a88f322fd1b50fdc3138c (diff)
downloadcurl-9ab0dc618fb33871d96dc5bd0607eb86ad5d8e02.tar.gz
tool_operate: Moved initial config setup into new init_config() function
Diffstat (limited to 'src/tool_cfgable.c')
-rw-r--r--src/tool_cfgable.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tool_cfgable.c b/src/tool_cfgable.c
index 5ee46871c..c47978612 100644
--- a/src/tool_cfgable.c
+++ b/src/tool_cfgable.c
@@ -22,6 +22,7 @@
#include "tool_setup.h"
#include "tool_cfgable.h"
+#include "tool_main.h"
#include "memdebug.h" /* keep this as LAST include */
@@ -30,6 +31,16 @@ void init_config(struct Configurable* config)
memset(config, 0, sizeof(struct Configurable));
config->errors = stderr; /* default errors to stderr */
+ config->postfieldsize = -1;
+ config->showerror = -1; /* will show errors */
+ config->use_httpget = FALSE;
+ config->create_dirs = FALSE;
+ config->maxredirs = DEFAULT_MAXREDIRS;
+ config->proto = CURLPROTO_ALL; /* FIXME: better to read from library */
+ config->proto_present = FALSE;
+ config->proto_redir =
+ CURLPROTO_ALL & ~(CURLPROTO_FILE|CURLPROTO_SCP); /* not FILE or SCP */
+ config->proto_redir_present = FALSE;
}
void free_config_fields(struct Configurable *config)