diff --git a/protocol.c b/protocol.c index 98ee51e..a1d7ee1 100644 --- a/protocol.c +++ b/protocol.c @@ -1288,7 +1288,7 @@ enet_protocol_receive_incoming_commands (ENetHost * host, ENetEvent * event) } } - return -1; + return 0; } static void diff --git a/win32.c b/win32.c index 81175a4..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) { @@ -354,7 +354,7 @@ enet_socket_receive (ENetSocket socket, { INT sinLength = sizeof (struct sockaddr_in); DWORD flags = 0, - recvLength; + recvLength = 0; struct sockaddr_in sin; if (WSARecvFrom (socket,