nfc-mfclassic: fixes a segfault when using only 1 argument (Fixes Issue 142)

This commit is contained in:
Romuald Conty 2011-02-06 19:46:16 +00:00
parent ffd1eb1875
commit ca3efe2517

View file

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