mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Fix previous commit.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user