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