mirror of
https://github.com/moparisthebest/curl
synced 2025-03-01 01:41:50 -05:00
fixed the option parser to not loop when a long option is specified
This commit is contained in:
parent
10717bd39b
commit
07c67138c9
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user