result = getparameter(flag, nextarg, &passarg, config, operation);
if(result == PARAM_NEXT_OPERATION) {
+ /* Reset result as PARAM_NEXT_OPERATION is only used here and not
+ returned from this function */
+ result = PARAM_OK;
+
if(operation->url_list && operation->url_list->url) {
/* Allocate the next config */
operation->next = malloc(sizeof(struct OperationConfig));
else
result = PARAM_NO_MEM;
}
-
- /* Reset result to continue */
- result = PARAM_OK;
}
else if(!result && passarg)
i++; /* we're supposed to skip this */