]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
fixed assignment vs. equals operator (issue 35)
authordn337t@gmail.com <dn337t@gmail.com@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Tue, 29 May 2012 12:47:13 +0000 (12:47 +0000)
committerdn337t@gmail.com <dn337t@gmail.com@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Tue, 29 May 2012 12:47:13 +0000 (12:47 +0000)
armsrc/iso14443a.c

index 6c219f301cbd8f130ca1ca214cb959b6137e8d32..e51775637868dc93d0cb0c6a80af93678ee0dffa 100644 (file)
@@ -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)
Impressum, Datenschutz