From: Daniel Stenberg Date: Sun, 19 Oct 2008 20:28:41 +0000 (+0000) Subject: Removed dead code, identified by coverity.com. X-Git-Tag: curl-7_19_1~104 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8a6eeb82c50b33df1bc8db96bb04fa714222cc43;p=thirdparty%2Fcurl.git Removed dead code, identified by coverity.com. --- diff --git a/src/main.c b/src/main.c index 7de7e42d93..e266351a29 100644 --- a/src/main.c +++ b/src/main.c @@ -1818,9 +1818,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */ return PARAM_OPTION_UNKNOWN; } } - if(hit < 0) { - return PARAM_OPTION_UNKNOWN; - } + if(aliases[hit].extraparam) { /* this option requires an extra parameter */ if(!longopt && parse[1]) {