[PATCH 5/5][v2][BZ #15022] Remove dead DL_DST_REQ_STATIC code
Roland McGrath
roland@hack.frob.com
Thu Jun 27 23:26:00 GMT 2013
> 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.
More information about the Libc-alpha
mailing list