aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-11-30 09:26:06 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-11-30 09:26:06 +0000
commit07c67138c9d4ee437b02d1e5d50f64327f362642 (patch)
tree1c58b0e548bb63608a114f62afb99e3d70bfa0a9
parent10717bd39bdd415038947fe0bd235f860b7883f4 (diff)
fixed the option parser to not loop when a long option is specified
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index c332f6a47..589892b34 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1464,7 +1464,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
}
hit = -1;
- } while(!singleopt && *++parse && !*usedarg);
+ } while(!longopt && !singleopt && *++parse && !*usedarg);
return PARAM_OK;
}