Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
mysterywolf committed Jul 26, 2022
1 parent 4722bc8 commit b43e6a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optparse.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ void optparse_init(struct optparse *options, char **argv)
{
options->argv = argv;
options->permute = 1;
options->optind = 1;
options->optind = argv[0] != 0;
options->subopt = 0;
options->optarg = 0;
options->errmsg[0] = '\0';
Expand Down

0 comments on commit b43e6a5

Please # to comment.