From 89dce898377abfdde54d784b050841a282ca3151 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Sat, 28 Sep 2013 16:37:34 +0200 Subject: ltunify: fix crash on unrecognised parameter --- ltunify.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ltunify.c b/ltunify.c index ca19408..7c2b373 100644 --- a/ltunify.c +++ b/ltunify.c @@ -1067,6 +1067,7 @@ static int validate_args(int argc, char **argv, char ***argsp, char **hidraw_pat struct option longopts[] = { { "device", 1, NULL, 'd' }, { "help", 0, NULL, 'h' }, + { 0, 0, 0, 0 }, }; *argsp = NULL; -- cgit v1.2.1