From: Ulrich Drepper Date: Thu, 14 Jan 2010 07:06:59 +0000 (-0800) Subject: Add nonnull attribute to unsetenv declaration. X-Git-Tag: fedora/glibc-2.11.90-9~1^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e26dfa69f5329d5ec7dfdb7a1596b1fbff0d3e43;p=thirdparty%2Fglibc.git Add nonnull attribute to unsetenv declaration. --- diff --git a/ChangeLog b/ChangeLog index 9080030d1e0..0fcaaa2df78 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-01-13 Ulrich Drepper + + * stdlib/stdlib.h: Parameter of unsetenv must not be NULL. + 2010-01-12 H.J. Lu * sysdeps/x86_64/multiarch/strlen.S: Unroll the loop. diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h index bac8ed65bea..248aa334712 100644 --- a/stdlib/stdlib.h +++ b/stdlib/stdlib.h @@ -586,7 +586,7 @@ extern int setenv (__const char *__name, __const char *__value, int __replace) __THROW __nonnull ((2)); /* Remove the variable NAME from the environment. */ -extern int unsetenv (__const char *__name) __THROW; +extern int unsetenv (__const char *__name) __THROW __nonnull ((1)); #endif #ifdef __USE_MISC