From 3a0f9ce0cb388707028471839eab5393a1f700af Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 8 Mar 1995 18:10:43 +0000 Subject: (decode_switches): Reset optind to 1 instead of 0. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3