From 295286e68aec9327a3580417009ec506abdf651a Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 2 Jun 2020 13:02:21 +0200 Subject: [PATCH] cppchecker --- client/src/emv/emvcore.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/client/src/emv/emvcore.c b/client/src/emv/emvcore.c index cb68b9a5d..6647dbf8b 100644 --- a/client/src/emv/emvcore.c +++ b/client/src/emv/emvcore.c @@ -439,8 +439,6 @@ int EMVSearchPSE(EMVCommandChannel channel, bool ActivateField, bool LeaveFieldO size_t sfidatalen[0x11] = {0}; uint16_t sw = 0; int res; - bool fileFound = false; - const char *PSE_or_PPSE = PSENum == 1 ? "PSE" : "PPSE"; // select PPSE @@ -452,8 +450,9 @@ int EMVSearchPSE(EMVCommandChannel channel, bool ActivateField, bool LeaveFieldO return 1; } - struct tlvdb *t = NULL; - t = tlvdb_parse_multi(data, datalen); + bool fileFound = false; + + struct tlvdb *t = tlvdb_parse_multi(data, datalen); if (t) { // PSE/PPSE with SFI struct tlvdb *tsfi = tlvdb_find_path(t, (tlv_tag_t[]) {0x6f, 0xa5, 0x88, 0x00});