nfc-mfclassic: fixes a segfault when using only 1 argument (Fixes Issue 142)
This commit is contained in:
parent
ffd1eb1875
commit
ca3efe2517
@ -358,7 +358,7 @@ main (int argc, const char *argv[])
|
||||
FILE *pfDump = NULL;
|
||||
const char *command = argv[1];
|
||||
|
||||
if (argc < 2) {
|
||||
if (argc < 3) {
|
||||
print_usage (argv[0]);
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user