From 007b7d2a3f81505f615eda40f6795b95a2208bee Mon Sep 17 00:00:00 2001 From: Maxim <46995666+Vincenz099@users.noreply.github.com> Date: Tue, 7 Apr 2020 12:48:10 +0200 Subject: [PATCH] Se trecvLength = 0; --- unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unix.c b/unix.c index a636f03..acb05c3 100644 --- a/unix.c +++ b/unix.c @@ -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));