mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user