From: dn337t@gmail.com Date: Tue, 29 May 2012 12:47:13 +0000 (+0000) Subject: fixed assignment vs. equals operator (issue 35) X-Git-Tag: v1.0.0~211 X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/db389d52cc3ccfa71db9b12f3b9723a74f6555f7?ds=sidebyside fixed assignment vs. equals operator (issue 35) --- 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)