[Date Prev][Date Next]
Re: (ITS#4765) sd_actives in daemon.c not initialized?
> Full_Name: Gang Wang
> Version: 2.3.20
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (188.8.131.52)
> 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/