mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-12-25 09:54:15 +08:00
make sure allocated data ptr in null (not garbage)
This commit is contained in:
parent
d802dba47d
commit
048b9a94cd
@ -109,6 +109,7 @@ SteamNetworkingMessage_t *AllocateMessage( int cbAllocateBuffer )
|
||||
if (cbAllocateBuffer < 0)
|
||||
cbAllocateBuffer = 0;
|
||||
|
||||
pMsg->m_pData = nullptr;
|
||||
if (cbAllocateBuffer)
|
||||
pMsg->m_pData = malloc(cbAllocateBuffer);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user