tools: terminate option list with a zero entry

Because, well, that's what we're supposed to do. Unless you want to think
outside the (array) box, but that has never helped anyone, has it?

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2017-05-05 09:50:56 +10:00
committed by bentiss
parent 0902e3420f
commit 1e5648b11d

View File

@@ -2040,6 +2040,7 @@ main(int argc, char **argv)
static struct option opts[] = {
{ "verbose", optional_argument, 0, OPT_VERBOSE },
{ "help", no_argument, 0, OPT_HELP },
{ 0, 0, 0, 0 },
};
c = getopt_long(argc, argv, "+h", opts, &option_index);