OSDN Git Service
(root)
/
winmerge-jp
/
winmerge-jp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2017250
)
unicoder.cpp: Remove needless code
author
sdottaka
<sdottaka@users.sourceforge.net>
Sun, 20 Sep 2015 03:54:03 +0000
(12:54 +0900)
committer
sdottaka
<sdottaka@users.sourceforge.net>
Sun, 20 Sep 2015 03:54:03 +0000
(12:54 +0900)
Src/Common/unicoder.cpp
patch
|
blob
|
history
diff --git
a/Src/Common/unicoder.cpp
b/Src/Common/unicoder.cpp
index
62abcde
..
0526ec7
100644
(file)
--- 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)