We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 081183c commit d83cbb8Copy full SHA for d83cbb8
features/nfc/source/nfc/ndef/common/Text.cpp
@@ -41,7 +41,9 @@ Text::Text(const Text &other) :
41
_text_record(other._text_record ? new uint8_t[other._text_record_size] : NULL),
42
_text_record_size(other._text_record_size)
43
{
44
- memcpy(_text_record, other._text_record, _text_record_size);
+ if (_text_record) {
45
+ memcpy(_text_record, other._text_record, _text_record_size);
46
+ }
47
}
48
49
Text::Text(
0 commit comments