[PATCH] Fix dl-environ.c

Ulrich Drepper drepper@redhat.com
Wed Sep 11 15:10:00 GMT 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Roland McGrath wrote:
> D'oh!  I don't see why that should be avoiding normal string routines,
> so I instead just snarfed the loop from the vanilla unsetenv, which
> does the same but using strncmp.

The reason it is not using srncmp is that this is the only use of 
strncmp in ld.so and it's not time-critical.  For a simple-minded inline 
function is better.

- -- 
- ---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE9f79i2ijCOnn/RHQRAkNSAJ913GpulPx7seOjnVyMK5nwqAZ7zgCfV6aq
wvhiwAbIwsMEAIQpzO0Qaxo=
=e9I+
-----END PGP SIGNATURE-----



More information about the Libc-hacker mailing list