From 94885f572c25a6a23c8c90a7a5b3a19f79d4b45c Mon Sep 17 00:00:00 2001
From: Satoshi Kataoka <satok@google.com>
Date: Mon, 3 Dec 2012 17:52:21 +0900
Subject: [PATCH] remove invalid comparison

Change-Id: I162c478debe5897be057998bd22924ed487d01af
---
 native/jni/src/binary_format.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/native/jni/src/binary_format.h b/native/jni/src/binary_format.h
index 86410fb8f0..9d25e063e1 100644
--- a/native/jni/src/binary_format.h
+++ b/native/jni/src/binary_format.h
@@ -201,7 +201,6 @@ inline void BinaryFormat::readHeaderValue(const uint8_t *const dict, const char
                     outValue[outValueIndex++] = codePoint;
                     codePoint = getCodePointAndForwardPointer(dict, &index);
                 }
-                if (outValueIndex < outValueIndex) outValue[outValueIndex] = 0;
                 // Finished copying. Break to go to the termination code.
                 break;
             }
@@ -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)
     if (outValueIndex >= outValueSize) outValueIndex = outValueSize - 1;
     if (outValueIndex >= 0) outValue[outValueIndex] = 0;
-    return;
 }
 
 inline int BinaryFormat::readHeaderValueInt(const uint8_t *const dict, const char *const key) {
-- 
GitLab