From db389d52cc3ccfa71db9b12f3b9723a74f6555f7 Mon Sep 17 00:00:00 2001 From: "dn337t@gmail.com" Date: Tue, 29 May 2012 12:47:13 +0000 Subject: [PATCH] fixed assignment vs. equals operator (issue 35) --- armsrc/iso14443a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/armsrc/iso14443a.c b/armsrc/iso14443a.c index 6c219f30..e5177563 100644 --- a/armsrc/iso14443a.c +++ b/armsrc/iso14443a.c @@ -1917,7 +1917,7 @@ void ReaderMifare(uint32_t parameter) { if ( (parameter != 0) && (memcmp(nt, nt_noattack, 4) == 0) ) continue; - isNULL = (nt_attacked[0] = 0) && (nt_attacked[1] = 0) && (nt_attacked[2] = 0) && (nt_attacked[3] = 0); + isNULL = (nt_attacked[0] == 0) && (nt_attacked[1] == 0) && (nt_attacked[2] == 0) && (nt_attacked[3] == 0); if ( (isNULL != 0 ) && (memcmp(nt, nt_attacked, 4) != 0) ) continue; if (nt_diff == 0) -- 2.39.5