Merge pull request #10 from phijor/master

Fix segfault when launching with unkown option
This commit is contained in:
Murilo Pereira 2015-11-30 09:38:36 -02:00
commit a2a3c84f3b

View File

@ -22,7 +22,8 @@ int main(int argc, char *argv[]) {
static const struct option options[] = { static const struct option options[] = {
{"help", no_argument, NULL, 'h'}, {"help", no_argument, NULL, 'h'},
{"version", no_argument, NULL, 'v'}, {"version", no_argument, NULL, 'v'},
{"passes", required_argument, NULL, 'p'} {"passes", required_argument, NULL, 'p'},
{0, 0, 0, 0}
}; };
program_name = argv[0]; program_name = argv[0];