]> granicus.if.org Git - curl/commitdiff
Removed dead code, identified by coverity.com.
authorDaniel Stenberg <daniel@haxx.se>
Sun, 19 Oct 2008 20:28:41 +0000 (20:28 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 19 Oct 2008 20:28:41 +0000 (20:28 +0000)
src/main.c

index 7de7e42d93fb8d17874d852cc5eb74d58d0cd520..e266351a29e43b5ee98f45f980888f339a947a5b 100644 (file)
@@ -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]) {