mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
Fix previous commit.
This commit is contained in:
parent
f3d338c9f3
commit
1448f32447
1 changed files with 5 additions and 0 deletions
|
@ -146,6 +146,11 @@ __add_to_environ (name, value, combined, replace)
|
|||
UNLOCK;
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (__environ != last_environ)
|
||||
memcpy ((char *) new_environ, (char *) __environ,
|
||||
size * sizeof (char *));
|
||||
|
||||
new_environ[size] = NULL;
|
||||
new_environ[size + 1] = NULL;
|
||||
ep = new_environ + size;
|
||||
|
|
Loading…
Add table
Reference in a new issue