diff --git a/src/tool_main.c b/src/tool_main.c index 06c28395f7..26ba021932 100644 --- a/src/tool_main.c +++ b/src/tool_main.c @@ -149,6 +149,7 @@ static CURLcode main_init(struct GlobalConfig *config) /* Initialise the config */ config_init(config->first); config->first->easy = config->easy; + config->first->global = config; } else { helpf(stderr, "error initializing curl easy handle\n");