Replaced memset/ZeroMemory with initializer

* Addes WINPR_ASSERT on many occations
* Replaced memset with array initializer
* Replaced ZeroMemory with array initializer
This commit is contained in:
akallabeth
2022-10-13 16:25:36 +02:00
committed by Pascal Nowack
parent 57d2a27980
commit 43c5289928
78 changed files with 353 additions and 378 deletions

View File

@@ -97,8 +97,7 @@ static UINT remdesk_write_channel_header(wStream* s, REMDESK_CHANNEL_HEADER* hea
{
int index;
UINT32 ChannelNameLen;
WCHAR ChannelNameW[32];
ZeroMemory(ChannelNameW, sizeof(ChannelNameW));
WCHAR ChannelNameW[32] = { 0 };
for (index = 0; index < 32; index++)
{