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:
parent
3b71b99abd
commit
54a7c6d2be
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue