Set DWORD sentLength = 0;
Same case like receive, we should initialize this variable.
This commit is contained in:
@@ -475,7 +475,7 @@ enet_socket_receive (ENetSocket socket,
|
|||||||
{
|
{
|
||||||
struct msghdr msgHdr;
|
struct msghdr msgHdr;
|
||||||
struct sockaddr_in sin;
|
struct sockaddr_in sin;
|
||||||
int recvLength = 0;
|
int recvLength;
|
||||||
|
|
||||||
memset (& msgHdr, 0, sizeof (struct msghdr));
|
memset (& msgHdr, 0, sizeof (struct msghdr));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user