From: Roland McGrath Date: Wed, 8 Mar 1995 18:10:43 +0000 (+0000) Subject: (decode_switches): Reset optind to 1 instead of 0. X-Git-Tag: 3.72.9~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a0f9ce0cb388707028471839eab5393a1f700af;p=thirdparty%2Fmake.git (decode_switches): Reset optind to 1 instead of 0. --- diff --git a/main.c b/main.c index 29615e0c..7b937cc9 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) {