From 27e469f5d751927baece89caf5c4b1006d41087d Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Fri, 6 Feb 2026 14:32:50 +0100 Subject: [PATCH] cppcheck: fix unused init --- client/src/cmdhf14b.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client/src/cmdhf14b.c b/client/src/cmdhf14b.c index d8086f922..0395c36f2 100644 --- a/client/src/cmdhf14b.c +++ b/client/src/cmdhf14b.c @@ -2744,8 +2744,6 @@ int CmdHF14BNdefRead(const char *Cmd) { switch_off_field_14b(); return res; } - // take offset from response - uint8_t offset = response[1]; // Parse CC data uint8_t cc_data[resplen - 2]; @@ -2792,7 +2790,7 @@ int CmdHF14BNdefRead(const char *Cmd) { } uint16_t ndef_size = (response[0] << 8) + response[1]; - offset = 2; + uint8_t offset = 2; uint8_t *ndef_file = calloc(ndef_size, sizeof(uint8_t)); if (ndef_file == NULL) {