diff --git a/source/enet/host.c b/source/enet/host.c index c44f2ed3..0bca71c7 100755 --- a/source/enet/host.c +++ b/source/enet/host.c @@ -38,6 +38,7 @@ enet_host_create (const ENetAddress * address, size_t peerCount, size_t channelL host = (ENetHost *) enet_malloc (sizeof (ENetHost)); if (host == NULL) return NULL; + memset (host, 0, sizeof (ENetHost)); host -> peers = (ENetPeer *) enet_malloc (peerCount * sizeof (ENetPeer)); if (host -> peers == NULL)