tool_cfgable: Added global config structure

This commit is contained in:
Steve Holme 2014-02-23 13:15:31 +00:00
parent 705a4cb549
commit 2249f7fe70
2 changed files with 12 additions and 2 deletions

View file

@ -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) {