2002-04-01 Till Straumann <strauman@SLAC.Stanford.EDU>

* libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
This commit is contained in:
Jeff Johnston 2002-04-01 22:29:40 +00:00
parent 3b71b99abd
commit 54a7c6d2be
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2002-04-01 Till Straumann <strauman@SLAC.Stanford.EDU>
* libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
Wed Mar 27 07:34:44 2002 Jason Tishler <jason@tishler.net>
* libc/include/sys/features.h (_POSIX_SEMAPHORES): New Cygwin define.

View File

@ -94,7 +94,10 @@ _DEFUN (_findenv_r, (reent_ptr, name, offset),
/* In some embedded systems, this does not get set. This protects
newlib from dereferencing a bad pointer. */
if (!*p_environ)
return NULL;
{
ENV_UNLOCK;
return NULL;
}
c = name;
len = 0;