1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-09-18 01:33:00 +03:00

make code more readable (inspired by clang static analyzer)

This commit is contained in:
Ilya Shipitsin 2016-11-28 17:56:00 +05:00
parent 334765ffd7
commit a658963cdc

View File

@ -2038,7 +2038,7 @@ UINT Utf8ToUni(wchar_t *s, UINT size, BYTE *u, UINT u_size)
while (true)
{
UINT type;
wchar_t c;
wchar_t c = 0;
BYTE c1, c2;
type = GetUtf8Type(u, u_size, i);
@ -2063,8 +2063,6 @@ UINT Utf8ToUni(wchar_t *s, UINT size, BYTE *u, UINT u_size)
}
i += type;
c = 0;
if (IsBigEndian())
{
if (sizeof(wchar_t) == 2)