From b8e0eec91d12bf4104fbe5e4a790a683203a001a Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Tue, 12 Nov 2013 00:28:24 +0100 Subject: [PATCH] nfc-mfclassic: initialize always bFormatCard --- utils/nfc-mfclassic.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utils/nfc-mfclassic.c b/utils/nfc-mfclassic.c index e6630c4..c481a5a 100644 --- a/utils/nfc-mfclassic.c +++ b/utils/nfc-mfclassic.c @@ -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);