Browse Source

Se trecvLength = 0;

Maxim 5 năm trước cách đây
mục cha
commit
007b7d2a3f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      unix.c

+ 1 - 1
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));