OSDN Git Service

* environ.cc (spenv::retrieve): Detect return of env_dontadd from cygheap_user
authorcgf <cgf>
Sat, 29 Jun 2002 17:26:12 +0000 (17:26 +0000)
committercgf <cgf>
Sat, 29 Jun 2002 17:26:12 +0000 (17:26 +0000)
commit7953c39dc7594bda7e5e0727ef71bfa0c33e37f7
tree23d9ace58acf5153ca300fc2d9239514fd74c5b8
parent0cbe578ee9af7c99e90116b7535c8933fa3e6009
* environ.cc (spenv::retrieve): Detect return of env_dontadd from cygheap_user
methods.
(build_env): Avoid incrementing environment pointer if not actually adding to
the environment.  That could result in garbage in the environment table.  Be
more defensive when reallocing envblock.
winsup/cygwin/ChangeLog
winsup/cygwin/environ.cc