[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#4765) sd_actives in daemon.c not initialized?

wanggang.wang@gmail.com wrote:
> Full_Name: Gang Wang
> Version: 2.3.20
> OS: 
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (
> openldap-2.3.20/servers/slapd/daemon.c
> There is one declaration in slap_daemon structure:
>     fd_set sd_actives;
> this variable is not initialized ... is this OK with all compilers?

It is a basic part of the C language specification - variables declared 
at file scope are implicitly initialized to zero. Perhaps you need to 
study the language a bit more before trying to do any more work in it.

   -- Howard Chu
   Chief Architect, Symas Corp.  http://www.symas.com
   Director, Highland Sun        http://highlandsun.com/hyc
   OpenLDAP Core Team            http://www.openldap.org/project/