Skip to content

Commit

Permalink
Merge pull request #6 from mysterywolf/master
Browse files Browse the repository at this point in the history
  • Loading branch information
liu2guang committed Jul 27, 2022
2 parents 4722bc8 + b43e6a5 commit 98a75bb
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 98a75bb

Please sign in to comment.