Sophie

Sophie

distrib > Mandriva > 2010.2 > x86_64 > by-pkgid > e0ecf1de97625bd665ba6741f8b282d6 > files > 8

glibc-2.11.1-8mnb2.src.rpm

From 2842025595115743ad50f8b2c395aafa407fda90 Mon Sep 17 00:00:00 2001
From: Ulrich Drepper <drepper@redhat.com>
Date: Wed, 13 Jan 2010 23:06:59 -0800
Subject: [PATCH 03/16] Add nonnull attribute to unsetenv declaration.

(adjusted cherry-pick from e26dfa69f5329d5ec7dfdb7a1596b1fbff0d3e43)
---
 ChangeLog       |    4 ++++
 stdlib/stdlib.h |    2 +-
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index ddac2f4..22a3c79 100644
--- 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-06  Ulrich Drepper  <drepper@redhat.com>
 
 	* dirent/dirent.h: Fix typo in feature selection macro use.
diff --git a/stdlib/stdlib.h b/stdlib/stdlib.h
index dc51d67..02a5013 100644
--- a/stdlib/stdlib.h
+++ b/stdlib/stdlib.h
@@ -585,7 +585,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
-- 
1.7.0