mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-02-21 09:16:35 +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;
|
||||
const char *command = argv[1];
|
||||
|
||||
if (argc < 2) {
|
||||
if (argc < 3) {
|
||||
print_usage (argv[0]);
|
||||
exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user