1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

Setting optind to 0 before calling getopt(3) is a stupid idea; it would

cause argv[0] to be evaluated as a program option, which is usually not
what we want. ;-)  Just leave it alone, the library is supposed to DTRT
anyway.
This commit is contained in:
Joerg Wunsch 2001-11-02 19:01:03 +00:00
parent f0caff7484
commit cc28ab4e56
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=49515

View File

@ -0,0 +1,10 @@
--- bonnie++.cpp.orig Mon Aug 20 00:39:12 2001
+++ bonnie++.cpp Fri Nov 2 19:54:31 2001
@@ -172,7 +172,6 @@
#endif
int int_c;
- optind = 0;
while(-1 != (int_c = getopt(argc, argv, "bd:fg:m:n:p:qr:s:u:x:y")) )
{
switch(char(int_c))