* stdlib/setenv.c (unsetenv): Don't search environment if it does
not exist.
This commit is contained in:
parent
37a6a271bf
commit
1fa7ae05b9
|
@ -1,3 +1,8 @@
|
||||||
|
2008-12-01 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* stdlib/setenv.c (unsetenv): Don't search environment if it does
|
||||||
|
not exist.
|
||||||
|
|
||||||
2008-11-29 Ulrich Drepper <drepper@redhat.com>
|
2008-11-29 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* login/utmp_file.c (file_writable): New variable.
|
* login/utmp_file.c (file_writable): New variable.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* Copyright (C) 1992,1995-2001,2004 Free Software Foundation, Inc.
|
/* Copyright (C) 1992,1995-2001,2004, 2008 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
|
@ -292,6 +292,7 @@ unsetenv (name)
|
||||||
LOCK;
|
LOCK;
|
||||||
|
|
||||||
ep = __environ;
|
ep = __environ;
|
||||||
|
if (ep != NULL)
|
||||||
while (*ep != NULL)
|
while (*ep != NULL)
|
||||||
if (!strncmp (*ep, name, len) && (*ep)[len] == '=')
|
if (!strncmp (*ep, name, len) && (*ep)[len] == '=')
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue