Skip to content

Commit

Permalink
Merge pull request #10 from phijor/master
Browse files Browse the repository at this point in the history
Fix segfault when launching with unkown option
  • Loading branch information
mpereira committed Nov 30, 2015
2 parents 343a55c + 7473c59 commit a2a3c84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ttysolitaire.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ int main(int argc, char *argv[]) {
static const struct option options[] = {
{"help", no_argument, NULL, 'h'},
{"version", no_argument, NULL, 'v'},
{"passes", required_argument, NULL, 'p'}
{"passes", required_argument, NULL, 'p'},
{0, 0, 0, 0}
};

program_name = argv[0];
Expand Down

0 comments on commit a2a3c84

Please sign in to comment.