1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2026-01-27 05:40:14 +03:00

Merge pull request #275 from chipitsine/master

cppcheck findings
This commit is contained in:
Moataz Elmasry
2018-02-01 00:06:08 +01:00
committed by GitHub
7 changed files with 21 additions and 11 deletions

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)