mirror of
https://github.com/curl/curl.git
synced 2025-03-01 15:15:34 +08:00
tool_main: Forgot to initialise the first operation's global pointer
This commit is contained in:
parent
5577540ad5
commit
fd97c17bb7
@ -149,6 +149,7 @@ static CURLcode main_init(struct GlobalConfig *config)
|
|||||||
/* Initialise the config */
|
/* Initialise the config */
|
||||||
config_init(config->first);
|
config_init(config->first);
|
||||||
config->first->easy = config->easy;
|
config->first->easy = config->easy;
|
||||||
|
config->first->global = config;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
helpf(stderr, "error initializing curl easy handle\n");
|
helpf(stderr, "error initializing curl easy handle\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user