summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>1995-03-08 18:10:43 +0000
committerRoland McGrath <roland@redhat.com>1995-03-08 18:10:43 +0000
commit3a0f9ce0cb388707028471839eab5393a1f700af (patch)
tree6239fb65eea6db53b62835377ed7b7bfdea46cc7
parent3aabdf96a15a6a9f896ebf3eedf260ad38fc1f23 (diff)
downloadgunmake-3a0f9ce0cb388707028471839eab5393a1f700af.tar.gz
(decode_switches): Reset optind to 1 instead of 0.
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 29615e0..7b937cc 100644
--- a/main.c
+++ b/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)
{