From: Howard Chu Date: Thu, 6 Oct 2005 20:06:53 +0000 (+0000) Subject: Silence valgrind complaint X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~309 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d973acec0d78fdca30bb330002806d7bc58df37b;p=openldap Silence valgrind complaint --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index a0125a19fc..098bce5242 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -207,7 +207,7 @@ static struct slap_daemon { #define SLAP_SOCK_IS_MUTE(s) (!SLAP_SOCK_IS_READ(s)) #define SLAP_SOCK_SET_INIT \ - slap_daemon.sd_epolls = ch_malloc(sizeof(struct epoll_event) * dtblsize * 2); \ + slap_daemon.sd_epolls = ch_calloc(1, sizeof(struct epoll_event) * dtblsize * 2); \ slap_daemon.sd_index = ch_malloc(sizeof(int) * dtblsize); \ slap_daemon.sd_epfd = epoll_create( dtblsize ); \ for (i=0; i