Commit b8e0eec9 authored by Philippe Teuwen's avatar Philippe Teuwen

nfc-mfclassic: initialize always bFormatCard

parent 25006846
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment