(decode_switches): Reset optind to 1 instead of 0.

This commit is contained in:
Roland McGrath 1995-03-08 18:10:43 +00:00
parent 3aabdf96a1
commit 3a0f9ce0cb

2
main.c
View file

@ -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)
{