Browse Source

initialize intercept callback to NULL

lsalzman 12 năm trước cách đây
mục cha
commit
77cc156305
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      host.c

+ 2 - 0
host.c

@@ -103,6 +103,8 @@ enet_host_create (const ENetAddress * address, size_t peerCount, size_t channelL
     host -> compressor.decompress = NULL;
     host -> compressor.destroy = NULL;
 
+    host -> intercept = NULL;
+
     enet_list_clear (& host -> dispatchQueue);
 
     for (currentPeer = host -> peers;