Null terminate long options to find unhandled options

This commit is contained in:
Con Kolivas 2015-03-10 14:02:51 +11:00
parent c951b17a20
commit e6669cf156

1
main.c
View file

@ -217,6 +217,7 @@ static struct option long_options[] = {
{"version", no_argument, 0, 'V'},
{"window", required_argument, 0, 'w'},
{"zpaq", no_argument, 0, 'z'},
{0, 0, 0, 0},
};
int main(int argc, char *argv[])