From 9aa064434c42fb2fbc55b07c70896600a42341a1 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 11 Oct 2005 02:56:56 +0000 Subject: [PATCH] Fix writefds init on Windows --- servers/slapd/daemon.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index f7e8a7f9b4..037f360240 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -232,7 +232,9 @@ static struct slap_daemon { #define SLAP_EVENT_INIT \ AC_MEMCPY( &readfds, &slap_daemon.sd_readers, sizeof(fd_set) ); \ if ( nwriters ) \ - AC_MEMCPY( &writefds, &slap_daemon.sd_writers, sizeof(fd_set) ) + AC_MEMCPY( &writefds, &slap_daemon.sd_writers, sizeof(fd_set) ); \ + else \ + FD_ZERO( &writefds ) #ifdef FD_SETSIZE #define CHK_SETSIZE \ -- 2.39.5