From 866df868258c2f427493a7f81a4fe23f3281c291 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 1 Jan 2020 21:22:01 +0100 Subject: [PATCH] cppcheck --- client/cmdhf15.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/cmdhf15.c b/client/cmdhf15.c index 559c48709..2e02aff68 100644 --- a/client/cmdhf15.c +++ b/client/cmdhf15.c @@ -643,6 +643,7 @@ static int NxpSysInfo(uint8_t *uid) { uint8_t *recv; uint8_t req[PM3_CMD_DATA_SIZE] = {0}; uint16_t reqlen; + uint32_t status; uint8_t arg1 = 1; if (uid != NULL) { @@ -669,7 +670,7 @@ static int NxpSysInfo(uint8_t *uid) { DropField(); - uint32_t status = resp.oldarg[0]; + status = resp.oldarg[0]; if (status < 2) { PrintAndLogEx(WARNING, "iso15693 card doesn't answer to NXP systeminfo command"); @@ -736,7 +737,7 @@ static int NxpSysInfo(uint8_t *uid) { if (!WaitForResponseTimeout(CMD_ACK, &resp, 2000)) { PrintAndLogEx(WARNING, "iso15693 card select failed"); } else { - uint32_t status = resp.oldarg[0]; + status = resp.oldarg[0]; PrintAndLogEx(NORMAL, ""); @@ -778,7 +779,7 @@ static int NxpSysInfo(uint8_t *uid) { DropField(); - uint32_t status = resp.oldarg[0]; + status = resp.oldarg[0]; if (status < 2) { PrintAndLogEx(WARNING, "iso15693 card doesn't answer to READ SIGNATURE command");