[Date Prev][Date Next]
Re: (ITS#4765) sd_actives in daemon.c not initialized?
Gang Wang wrote:
> Yes. but funny that you invoked FD_ZERO() for sd_readers and sd_writers.
> You are assuming the semantics of FD_ZERO() is to "set something as
> zero", but on some system it is not. For example, implement fd_set as an
> array, then 0 is a valid value. FD_ZERO() have to initialize something
> as -1 ...
> Funny that the code treat sd_actives differently.
That's a different question than you asked at first.
> BTW, I know C spec well.
Then you should know your original question has no dependency on the
compiler being used. Rather than waste people's time, you should ask
your actual question at the outset, not some meaningless one.
> On 12/1/06, *Howard Chu* <email@example.com <mailto:firstname.lastname@example.org>> wrote:
> email@example.com <mailto:firstname.lastname@example.org> wrote:
> > Full_Name: Gang Wang
> > Version: 2.3.20
> > OS:
> > URL: ftp://ftp.openldap.org/incoming/
> > Submission from: (NULL) ( 18.104.22.168 <http://22.214.171.124>)
> > 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?
-- 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/