mirror of
https://github.com/lsalzman/enet
synced 2024-11-21 06:25:59 -07:00
Set DWORD sentLength = 0;
Same case like receive, we should initialize this variable.
This commit is contained in:
parent
007b7d2a3f
commit
67cee4803a
2 changed files with 2 additions and 2 deletions
2
unix.c
2
unix.c
|
@ -475,7 +475,7 @@ enet_socket_receive (ENetSocket socket,
|
|||
{
|
||||
struct msghdr msgHdr;
|
||||
struct sockaddr_in sin;
|
||||
int recvLength = 0;
|
||||
int recvLength;
|
||||
|
||||
memset (& msgHdr, 0, sizeof (struct msghdr));
|
||||
|
||||
|
|
2
win32.c
2
win32.c
|
@ -316,7 +316,7 @@ enet_socket_send (ENetSocket socket,
|
|||
size_t bufferCount)
|
||||
{
|
||||
struct sockaddr_in sin;
|
||||
DWORD sentLength;
|
||||
DWORD sentLength = 0;
|
||||
|
||||
if (address != NULL)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue