fix TODO: getopt32 should reset optind to 1 itself

This commit is contained in:
Denis Vlasenko
2007-03-15 13:28:46 +00:00
parent 972288e62f
commit 24af7201e9
2 changed files with 6 additions and 4 deletions

View File

@@ -2041,8 +2041,6 @@ int gzip_main(int argc, char **argv)
//if (opt & 0x4) // -v
#if ENABLE_GUNZIP /* gunzip_main may not be visible... */
if (opt & 0x8) { // -d
/* FIXME: getopt32 should not depend on optind */
optind = 1;
return gunzip_main(argc, argv);
}
#endif