From d973acec0d78fdca30bb330002806d7bc58df37b Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 6 Oct 2005 20:06:53 +0000 Subject: [PATCH] Silence valgrind complaint --- servers/slapd/daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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