diff options
author | Steve Holme <steve_holme@hotmail.com> | 2014-02-23 13:15:31 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2014-02-23 13:12:47 +0000 |
commit | 2249f7fe70a056498ba1ebd59abc47ca9b37cd3a (patch) | |
tree | 331e6ffa8a4ea78f003e8bff5de56f35d2ea4f98 /src/tool_main.c | |
parent | 705a4cb549d7cd798162430512f482ba930226d6 (diff) | |
download | curl-2249f7fe70a056498ba1ebd59abc47ca9b37cd3a.tar.gz |
tool_cfgable: Added global config structure
Diffstat (limited to 'src/tool_main.c')
-rw-r--r-- | src/tool_main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tool_main.c b/src/tool_main.c index 9542b059a..0cc767b1f 100644 --- a/src/tool_main.c +++ b/src/tool_main.c @@ -162,8 +162,11 @@ static void main_free(void) int main(int argc, char *argv[]) { CURLcode result = CURLE_OK; + struct GlobalConfig global; struct OperationConfig *config; + memset(&global, 0, sizeof(global)); + main_checkfds(); #if defined(HAVE_SIGNAL) && defined(SIGPIPE) @@ -173,7 +176,7 @@ int main(int argc, char *argv[]) /* Initialize memory tracking */ memory_tracking_init(); - /* Allocate the initial config */ + /* Allocate the initial operate config */ config = malloc(sizeof(struct OperationConfig)); if(config) { |