mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-22 17:39:53 +03:00
make code more readable (inspired by clang static analyzer)
This commit is contained in:
parent
334765ffd7
commit
a658963cdc
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user