diff options
author | millert <> | 2005-02-16 21:20:22 +0000 |
---|---|---|
committer | millert <> | 2005-02-16 21:20:22 +0000 |
commit | 6df12cc08611edf2529319130a399001833c2319 (patch) | |
tree | 60657b7024404b06461e800f1dc433d535ebf404 /src/lib/libc/string/strdup.3 | |
parent | 3273bfcfafdb256c9dbd7cbc504d9e52378982fd (diff) | |
download | openbsd-6df12cc08611edf2529319130a399001833c2319.tar.gz openbsd-6df12cc08611edf2529319130a399001833c2319.tar.bz2 openbsd-6df12cc08611edf2529319130a399001833c2319.zip |
Stash the environment pointer we get from realloc() instead of just
setting a flag. That way when we are called again we can be sure
to realloc() the right thing, regardless of the current value of
environ. When the stashed value != environ (or when we are called
for the first time), copy the existing entries from environ and set
environ to the new value. OK deraadt@, beck@, djm@
Diffstat (limited to 'src/lib/libc/string/strdup.3')
0 files changed, 0 insertions, 0 deletions