From: Howard Chu Date: Tue, 11 Oct 2005 02:56:56 +0000 (+0000) Subject: Fix writefds init on Windows X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~293 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9aa064434c42fb2fbc55b07c70896600a42341a1;p=openldap Fix writefds init on Windows --- 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 \