Skip to content

Commit 90f2c5f

Browse files
committed
main UPDATE reset getopt optind
1 parent a327574 commit 90f2c5f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,6 +1147,7 @@ main(int argc, char *argv[])
11471147
np2srv.server_dir = SERVER_DIR;
11481148

11491149
/* process command line options */
1150+
optind = 0;
11501151
while ((c = getopt(argc, argv, "dFhVp:f:U::m:u:g:t:x:v:c:")) != -1) {
11511152
switch (c) {
11521153
case 'd':

0 commit comments

Comments
 (0)