Skip to content
Snippets Groups Projects
Commit 94885f57 authored by Satoshi Kataoka's avatar Satoshi Kataoka
Browse files

remove invalid comparison

Change-Id: I162c478debe5897be057998bd22924ed487d01af
parent 16e9d343
No related branches found
No related tags found
No related merge requests found
...@@ -201,7 +201,6 @@ inline void BinaryFormat::readHeaderValue(const uint8_t *const dict, const char ...@@ -201,7 +201,6 @@ inline void BinaryFormat::readHeaderValue(const uint8_t *const dict, const char
outValue[outValueIndex++] = codePoint; outValue[outValueIndex++] = codePoint;
codePoint = getCodePointAndForwardPointer(dict, &index); codePoint = getCodePointAndForwardPointer(dict, &index);
} }
if (outValueIndex < outValueIndex) outValue[outValueIndex] = 0;
// Finished copying. Break to go to the termination code. // Finished copying. Break to go to the termination code.
break; break;
} }
...@@ -219,7 +218,6 @@ inline void BinaryFormat::readHeaderValue(const uint8_t *const dict, const char ...@@ -219,7 +218,6 @@ inline void BinaryFormat::readHeaderValue(const uint8_t *const dict, const char
// Put a terminator 0 if possible at all (always unless outValueSize is <= 0) // Put a terminator 0 if possible at all (always unless outValueSize is <= 0)
if (outValueIndex >= outValueSize) outValueIndex = outValueSize - 1; if (outValueIndex >= outValueSize) outValueIndex = outValueSize - 1;
if (outValueIndex >= 0) outValue[outValueIndex] = 0; if (outValueIndex >= 0) outValue[outValueIndex] = 0;
return;
} }
inline int BinaryFormat::readHeaderValueInt(const uint8_t *const dict, const char *const key) { inline int BinaryFormat::readHeaderValueInt(const uint8_t *const dict, const char *const key) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment