cppcheck: fix unused init
This commit is contained in:
1 parent
28ebaf529f
commit
27e469f5d7
1 file changed
+1
-3
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user