mirror of
https://github.com/curl/curl.git
synced 2026-07-30 11:28:05 +03:00
tool_cfgable: Added support for knowing the current operation
This commit is contained in:
parent
e904b15f21
commit
f35668985e
2 changed files with 6 additions and 5 deletions
|
|
@ -1831,14 +1831,14 @@ CURLcode operate(struct GlobalConfig *config, int argc, argv_item_t argv[])
|
|||
operation = operation->next;
|
||||
}
|
||||
|
||||
/* Reset the operation pointer */
|
||||
operation = config->first;
|
||||
/* Set the current operation pointer */
|
||||
config->current = config->first;
|
||||
|
||||
/* Perform each operation */
|
||||
while(!result && operation) {
|
||||
result = operate_do(operation);
|
||||
while(!result && config->current) {
|
||||
result = operate_do(config->current);
|
||||
|
||||
operation = operation->next;
|
||||
config->current = config->current->next;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue