mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-18 05:23:47 +00:00
nfc-mfclassic: fixes a segfault when using only 1 argument (Fixes Issue 142)
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user