Se trecvLength = 0;

This commit is contained in:
Maxim 2020-04-07 12:48:10 +02:00 committed by GitHub
parent 92bf2d8256
commit 007b7d2a3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
unix.c
View file

@ -475,7 +475,7 @@ enet_socket_receive (ENetSocket socket,
{
struct msghdr msgHdr;
struct sockaddr_in sin;
int recvLength;
int recvLength = 0;
memset (& msgHdr, 0, sizeof (struct msghdr));