From 1e5648b11d82b83e845695a419007e9bcf88cb4c Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 5 May 2017 09:50:56 +1000 Subject: [PATCH] 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 --- tools/ratbag-command.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/ratbag-command.c b/tools/ratbag-command.c index 8ff68901..6a054bed 100644 --- a/tools/ratbag-command.c +++ b/tools/ratbag-command.c @@ -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);