Skip to content

Commit

Permalink
Fix null terminating struct in option array
Browse files Browse the repository at this point in the history
Initialize the two declarations that were missing from the terminating
 option struct in the opts array.
  • Loading branch information
pamolloy committed May 23, 2012
1 parent 7282b82 commit bb8a76b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.c
Expand Up @@ -1154,7 +1154,7 @@ struct option
#endif
{ "-dock", 6, 0, set_dock },
{ "-v", 3, 0, print_version },
{ NULL, NULL}
{ NULL, 0, 0, NULL }
};

//TODO Divide into two functions and print usage on return 0
Expand Down

0 comments on commit bb8a76b

Please sign in to comment.