Fixed conditional-uninitialized warnings

This commit is contained in:
akallabeth 2022-10-11 11:49:32 +02:00 committed by Martin Fleisz
parent 23082b090c
commit 9d197b263c
4 changed files with 14 additions and 14 deletions

View File

@ -400,8 +400,8 @@ TSMF_PRESENTATION* tsmf_presentation_find_by_id(const BYTE* guid)
UINT32 index;
UINT32 count;
BOOL found = FALSE;
char guid_str[GUID_SIZE * 2 + 1];
TSMF_PRESENTATION* presentation;
char guid_str[GUID_SIZE * 2 + 1] = { 0 };
TSMF_PRESENTATION* presentation = NULL;
ArrayList_Lock(presentation_list);
count = ArrayList_Count(presentation_list);
@ -1318,7 +1318,7 @@ TSMF_STREAM* tsmf_stream_find_by_id(TSMF_PRESENTATION* presentation, UINT32 stre
UINT32 index;
UINT32 count;
BOOL found = FALSE;
TSMF_STREAM* stream;
TSMF_STREAM* stream = NULL;
ArrayList_Lock(presentation->stream_list);
count = ArrayList_Count(presentation->stream_list);

View File

@ -903,15 +903,15 @@ static BOOL freerdp_peer_send_server_redirection_pdu(
UINT16 length;
UINT32 redirFlags;
UINT32 targetNetAddressLength;
UINT32 loadBalanceInfoLength;
UINT32 userNameLength;
UINT32 domainLength;
UINT32 passwordLength;
UINT32 targetFQDNLength;
UINT32 targetNetBiosNameLength;
UINT32 targetNetAddressesLength;
UINT32* targetNetAddressesWLength;
UINT32 targetNetAddressLength = 0;
UINT32 loadBalanceInfoLength = 0;
UINT32 userNameLength = 0;
UINT32 domainLength = 0;
UINT32 passwordLength = 0;
UINT32 targetFQDNLength = 0;
UINT32 targetNetBiosNameLength = 0;
UINT32 targetNetAddressesLength = 0;
UINT32* targetNetAddressesWLength = NULL;
LPWSTR targetNetAddressW = NULL;
LPWSTR userNameW = NULL;

View File

@ -568,7 +568,7 @@ static SECURITY_STATUS SEC_ENTRY negotiate_InitializeSecurityContextW(
SecBufferDesc mech_input = { SECBUFFER_VERSION, 2, mech_input_buffers };
SecBufferDesc mech_output = { SECBUFFER_VERSION, 1, &output_token.mechToken };
SECURITY_STATUS status = SEC_E_INTERNAL_ERROR;
SECURITY_STATUS sub_status;
SECURITY_STATUS sub_status = SEC_E_INTERNAL_ERROR;
WinPrAsn1Encoder* enc = NULL;
wStream s;
const Mech* mech;

View File

@ -390,7 +390,7 @@ size_t WinPrAsn1EncEndContainer(WinPrAsn1Encoder* enc)
{
size_t innerLen, i, unused;
size_t innerHeaderBytes, outerHeaderBytes;
BYTE containerByte;
BYTE containerByte = 0;
WinPrAsn1EncContainer* container;
Asn1Chunk* chunk;
wStream staticS;