From 1f4d2fb3d4abe95f5fcd3e1bfe8db1c44ab94a0a Mon Sep 17 00:00:00 2001 From: rstular Date: Wed, 12 May 2021 18:23:53 +0200 Subject: [PATCH] Fix - assignment instead of comparison (PCSC driver) --- libnfc/drivers/pcsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnfc/drivers/pcsc.c b/libnfc/drivers/pcsc.c index 200a11d..62a5f65 100644 --- a/libnfc/drivers/pcsc.c +++ b/libnfc/drivers/pcsc.c @@ -352,7 +352,7 @@ static int pcsc_props_to_target(struct nfc_device *pnd, uint8_t it, const uint8_ uint8_t atqa[2]; pcsc_get_atqa(pnd, atqa, sizeof(atqa)); //ATQA Coding of NXP Contactless Card ICs - if(atqa[0] = 0x00 || atqa[0] == 0x03) + if(atqa[0] == 0x00 || atqa[0] == 0x03) { memcpy(pnt->nti.nai.abtAtqa,atqa,2); }else {