Skip to content

Commit

Permalink
main UPDATE reset getopt optind
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvasko committed Jul 1, 2024
1 parent a327574 commit 90f2c5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1147,6 +1147,7 @@ main(int argc, char *argv[])
np2srv.server_dir = SERVER_DIR;

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

0 comments on commit 90f2c5f

Please sign in to comment.