Skip to content

Commit 62d0770

Browse files
committed
NFCEEPROM: fix _ndef_buffer_reader init in ctor.
Fixes Coverity issue about not initialized members.
1 parent d83cbb8 commit 62d0770

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

features/nfc/source/nfc/NFCEEPROM.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ using namespace mbed;
2121
using namespace mbed::nfc;
2222

2323
NFCEEPROM::NFCEEPROM(NFCEEPROMDriver *driver, events::EventQueue *queue, const Span<uint8_t> &ndef_buffer) : NFCTarget(ndef_buffer),
24-
_delegate(NULL), _driver(driver), _event_queue(queue), _initialized(false), _current_op(nfc_eeprom_idle), _ndef_buffer_read_sz(0), _eeprom_address(0), _operation_result(NFC_ERR_UNKNOWN)
24+
_delegate(NULL), _driver(driver), _event_queue(queue), _initialized(false), _current_op(nfc_eeprom_idle), _ndef_buffer_read_sz(0), _eeprom_address(0),
25+
_operation_result(NFC_ERR_UNKNOWN), _ndef_buffer_reader{nullptr, 0, nullptr}
2526
{
2627
_driver->set_delegate(this);
2728
_driver->set_event_queue(queue);

0 commit comments

Comments
 (0)