1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 16:18:48 -05:00

tool_getparam: Removed "dead assignment" code introduced in commit 1a9b58fc

This commit is contained in:
Steve Holme 2014-03-22 16:31:13 +00:00
parent 196140dcaf
commit 5e097583f7

View File

@ -1828,6 +1828,10 @@ ParameterError parse_args(struct GlobalConfig *config, int argc,
result = getparameter(flag, nextarg, &passarg, config, operation); result = getparameter(flag, nextarg, &passarg, config, operation);
if(result == PARAM_NEXT_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) { if(operation->url_list && operation->url_list->url) {
/* Allocate the next config */ /* Allocate the next config */
operation->next = malloc(sizeof(struct OperationConfig)); operation->next = malloc(sizeof(struct OperationConfig));
@ -1851,9 +1855,6 @@ ParameterError parse_args(struct GlobalConfig *config, int argc,
else else
result = PARAM_NO_MEM; result = PARAM_NO_MEM;
} }
/* Reset result to continue */
result = PARAM_OK;
} }
else if(!result && passarg) else if(!result && passarg)
i++; /* we're supposed to skip this */ i++; /* we're supposed to skip this */