From: Daniel Stenberg Date: Fri, 30 Nov 2001 09:26:06 +0000 (+0000) Subject: fixed the option parser to not loop when a long option is specified X-Git-Tag: curl-7_9_2~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=07c67138c9d4ee437b02d1e5d50f64327f362642;p=curl fixed the option parser to not loop when a long option is specified --- 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; }