aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-10-19 20:28:41 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-10-19 20:28:41 +0000
commit8a6eeb82c50b33df1bc8db96bb04fa714222cc43 (patch)
tree1301f96dbbc4d1b1109859209d099c0bde062885
parent5779283a52a1369cccbe1a1d314e2ec8ac949e0f (diff)
Removed dead code, identified by coverity.com.
-rw-r--r--src/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 7de7e42d9..e266351a2 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]) {