(decode_switches): Reset optind to 1 instead of 0.
authorRoland McGrath <roland@redhat.com>
Wed, 8 Mar 1995 18:10:43 +0000 (18:10 +0000)
committerRoland McGrath <roland@redhat.com>
Wed, 8 Mar 1995 18:10:43 +0000 (18:10 +0000)
main.c

diff --git a/main.c b/main.c
index 29615e0cf0109f3f6d4124217860ca5d19bf6b51..7b937cc9735ce142d76be045557d0857cfddee13 100644 (file)
--- 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)
     {