nfc-mfclassic: initialize always bFormatCard
This commit is contained in:
parent
250068462b
commit
b8e0eec91d
1 changed files with 1 additions and 2 deletions
|
@ -531,8 +531,7 @@ main(int argc, const char *argv[])
|
|||
atAction = ACTION_WRITE;
|
||||
if (strcmp(command, "W") == 0)
|
||||
unlock = 1;
|
||||
if (strcmp(command, "f") == 0)
|
||||
bFormatCard = 1;
|
||||
bFormatCard = (strcmp(command, "f") == 0);
|
||||
bUseKeyA = tolower((int)((unsigned char) * (argv[2]))) == 'a';
|
||||
bTolerateFailures = tolower((int)((unsigned char) * (argv[2]))) != (int)((unsigned char) * (argv[2]));
|
||||
bUseKeyFile = (argc > 4);
|
||||
|
|
Loading…
Reference in a new issue