]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add nonnull attribute to unsetenv declaration.
authorUlrich Drepper <drepper@redhat.com>
Thu, 14 Jan 2010 07:06:59 +0000 (23:06 -0800)
committerUlrich Drepper <drepper@redhat.com>
Thu, 14 Jan 2010 07:06:59 +0000 (23:06 -0800)
ChangeLog
stdlib/stdlib.h

index 9080030d1e0de3e8fc521054f9ed01e1f8c48943..0fcaaa2df785c2bdd46ebc47f33ed1d109b748e0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-01-13  Ulrich Drepper  <drepper@redhat.com>
+
+       * stdlib/stdlib.h: Parameter of unsetenv must not be NULL.
+
 2010-01-12  H.J. Lu  <hongjiu.lu@intel.com>
 
        * sysdeps/x86_64/multiarch/strlen.S: Unroll the loop.
index bac8ed65beadd5975b80dcdcbed0614ca926e208..248aa33471273997c6e6428630e7d06bd063f334 100644 (file)
@@ -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