aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMaxim <[email protected]>2020-04-07 12:48:10 +0200
committerGitHub <[email protected]>2020-04-07 12:48:10 +0200
commit007b7d2a3f81505f615eda40f6795b95a2208bee (patch)
tree7a34a6873914c36c212d4a65b2e8a8d88cef79d2
parent92bf2d8256a5b87e6de9f7305d26148642b68fd2 (diff)
downloadenet-007b7d2a3f81505f615eda40f6795b95a2208bee.tar.gz
enet-007b7d2a3f81505f615eda40f6795b95a2208bee.zip
Se trecvLength = 0;
-rw-r--r--unix.c2
1 files changed, 1 insertions, 1 deletions
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));