ltunify: fix crash on unrecognised parameter

This commit is contained in:
Peter Wu
2013-09-28 16:37:34 +02:00
parent 8fbf5f92d2
commit 89dce89837

View File

@@ -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;