This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.21-191-ga2d4cf7


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  a2d4cf72c0ab07d4e58b42c01ac3ed2b95ca8d9b (commit)
      from  5ca10a0c9ad1edb3b2e2e59ac6dccdd879cf84ae (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a2d4cf72c0ab07d4e58b42c01ac3ed2b95ca8d9b

commit a2d4cf72c0ab07d4e58b42c01ac3ed2b95ca8d9b
Author: Paul Pluzhnikov <ppluzhnikov@google.com>
Date:   Wed Mar 11 08:55:50 2015 -0700

    Fix BZ #18043 comment # 19: don't call undefined setenv(..., NULL, 1).

diff --git a/ChangeLog b/ChangeLog
index 10410dc..7360079 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-03-11  Paul Pluzhnikov  <ppluzhnikov@google.com>
+
+	[BZ #18043]
+	* posix/wordexp.c (parse_param): Don't call setenv(..., NULL, 1).
+
 2015-03-11  Adhemerval Zanellla  <azanella@linux.vnet.ibm.com>
 
 	* config.h.in [HAVE_ASM_GLOBAL_DOT_NAME]: Remove define.
diff --git a/posix/wordexp.c b/posix/wordexp.c
index f470e08..f6062d5 100644
--- a/posix/wordexp.c
+++ b/posix/wordexp.c
@@ -1915,7 +1915,7 @@ envsubst:
 	  if (pattern && !value)
 	    goto no_space;
 
-	  __setenv (env, value, 1);
+	  __setenv (env, value ?: "", 1);
 	  break;
 
 	default:

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog       |    5 +++++
 posix/wordexp.c |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]