From: sdottaka Date: Sun, 20 Sep 2015 03:54:03 +0000 (+0900) Subject: unicoder.cpp: Remove needless code X-Git-Tag: 2.16.5~1432 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=293fc4d41d13d6f910507db9291c8ac0472093c1;p=winmerge-jp%2Fwinmerge-jp.git unicoder.cpp: Remove needless code --- diff --git a/Src/Common/unicoder.cpp b/Src/Common/unicoder.cpp index 62abcdeae..0526ec7e9 100644 --- a/Src/Common/unicoder.cpp +++ b/Src/Common/unicoder.cpp @@ -1141,8 +1141,6 @@ bool CheckForInvalidUtf8(const char *pBuffer, size_t size) return false; pVal2 = (unsigned char *)pBuffer; bool bUTF8 = false; - if (size < 3) - return false; for (size_t i = 0; i < (size - 3); ++i) { if ((*pVal2 & 0x80) == 0x00)