mirror of
https://github.com/Lekensteyn/ltunify.git
synced 2025-12-10 02:15:34 +00:00
ltunify: fix crash on unrecognised parameter
This commit is contained in:
@@ -1067,6 +1067,7 @@ static int validate_args(int argc, char **argv, char ***argsp, char **hidraw_pat
|
|||||||
struct option longopts[] = {
|
struct option longopts[] = {
|
||||||
{ "device", 1, NULL, 'd' },
|
{ "device", 1, NULL, 'd' },
|
||||||
{ "help", 0, NULL, 'h' },
|
{ "help", 0, NULL, 'h' },
|
||||||
|
{ 0, 0, 0, 0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
*argsp = NULL;
|
*argsp = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user