CURL *easy; /* Once we have one, we keep it here */
struct OperationConfig *first;
+ struct OperationConfig *current;
struct OperationConfig *last; /* Always last in the struct */
};
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;
}
}
}