mirror of
https://salsa.debian.org/srivasta/make-dfsg.git
synced 2024-12-26 14:00:56 +00:00
(decode_switches): Reset optind to 1 instead of 0.
This commit is contained in:
parent
3aabdf96a1
commit
3a0f9ce0cb
1 changed files with 1 additions and 1 deletions
2
main.c
2
main.c
|
@ -1221,7 +1221,7 @@ decode_switches (argc, argv, env)
|
|||
but not for options from the environment. */
|
||||
opterr = !env;
|
||||
/* Reset getopt's state. */
|
||||
optind = 0;
|
||||
optind = 1;
|
||||
|
||||
while (optind < argc)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue