1
0
mirror of https://github.com/mirror/make.git synced 2025-04-24 20:10:40 +08:00

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