[FL-3481] Properly reset the NFC device data (#2980)

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
Astra
2023-08-23 03:40:05 +09:00
committed by GitHub
co-authored by あく
parent ace0901125
commit 27b2808ade
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -1625,6 +1625,9 @@ void nfc_device_data_clear(NfcDeviceData* dev_data) {
} else if(dev_data->protocol == NfcDeviceProtocolEMV) {
memset(&dev_data->emv_data, 0, sizeof(EmvData));
}
furi_string_reset(dev_data->parsed_data);
memset(&dev_data->nfc_data, 0, sizeof(FuriHalNfcDevData));
dev_data->protocol = NfcDeviceProtocolUnknown;
furi_string_reset(dev_data->parsed_data);