Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unitSeparator --> infoSeparator
Browse files Browse the repository at this point in the history
emargolis committed Jan 14, 2023
1 parent 2ec80a5 commit 97e059e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/core/TLVReader.cpp
Original file line number Diff line number Diff line change
@@ -314,10 +314,10 @@ CHIP_ERROR TLVReader::Get(CharSpan & v)

// If Unicode Information Separator 1 (0x1f) is present in the string then method returns
// string ending at first appearance of the Information Separator 1.
const uint8_t * unitSeparator = reinterpret_cast<const uint8_t *>(memchr(bytes, kUnicodeInformationSeparator1, len));
if (unitSeparator != nullptr)
const uint8_t * infoSeparator = reinterpret_cast<const uint8_t *>(memchr(bytes, kUnicodeInformationSeparator1, len));
if (infoSeparator != nullptr)
{
len = static_cast<uint32_t>(unitSeparator - bytes);
len = static_cast<uint32_t>(infoSeparator - bytes);
}

v = CharSpan(Uint8::to_const_char(bytes), len);

0 comments on commit 97e059e

Please sign in to comment.