diff --git a/unix.c b/unix.c index acb05c3..a636f03 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 = 0; + int recvLength; memset (& msgHdr, 0, sizeof (struct msghdr)); diff --git a/win32.c b/win32.c index 687aa9f..eebdb03 100644 --- a/win32.c +++ b/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) {