This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 5/5][v2][BZ #15022] Remove dead DL_DST_REQ_STATIC code


>  I can see in the sources that _dl_init_paths is only called from two 
> sites -- _dl_non_dynamic_init, that clearly doesn't apply here, and 
> dl_main.  In the latter case the call is only made after the main map has 
> already been initialised.  So perhaps that "if (l != NULL)" quoted above 
> can really be "assert (l != NULL)"?  I'll send a patch proposal if so.

I think you're right.  You don't even need the assert, since it's accessed
immediately and will have a straightforward crash if it's ever null.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]