mirror of
https://github.com/curl/curl.git
synced 2026-08-25 05:23:32 +03:00
fixed the option parser to not loop when a long option is specified
This commit is contained in:
parent
10717bd39b
commit
07c67138c9
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue