mirror of
https://github.com/curl/curl.git
synced 2026-08-01 01:28:03 +03:00
tool_cfgable: Added GlobalConfig pointer to OperationConfig
In order to ease the moving of global options such as the error stream, updated the OperationConfig structure to point to the GlobalConfig.
This commit is contained in:
parent
fc59a9e18f
commit
17df2d8f8e
3 changed files with 9 additions and 0 deletions
|
|
@ -1838,6 +1838,9 @@ ParameterError parse_args(struct GlobalConfig *config, int argc,
|
|||
/* Copy the easy handle */
|
||||
operation->next->easy = config->easy;
|
||||
|
||||
/* Set the global config pointer */
|
||||
operation->next->global = config;
|
||||
|
||||
/* Update the last operation pointer */
|
||||
config->last = operation->next;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue