1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-26 11:29:53 +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) while (true)
{ {
UINT type; UINT type;
wchar_t c; wchar_t c = 0;
BYTE c1, c2; BYTE c1, c2;
type = GetUtf8Type(u, u_size, i); type = GetUtf8Type(u, u_size, i);
@ -2063,8 +2063,6 @@ UINT Utf8ToUni(wchar_t *s, UINT size, BYTE *u, UINT u_size)
} }
i += type; i += type;
c = 0;
if (IsBigEndian()) if (IsBigEndian())
{ {
if (sizeof(wchar_t) == 2) if (sizeof(wchar_t) == 2)