diff options
author | Christopher Faylor <me@cgf.cx> | 2005-12-29 03:46:56 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-12-29 03:46:56 +0000 |
commit | 77ae8757f771cca2566040ba291427086c7c43d3 (patch) | |
tree | f322d96548acfe1121b8381fced60767a53f03bc | |
parent | 20e84812d2e9e4aa9a979f305729c44b6decc64f (diff) | |
download | newlib-77ae8757f771cca2566040ba291427086c7c43d3.zip newlib-77ae8757f771cca2566040ba291427086c7c43d3.tar.gz newlib-77ae8757f771cca2566040ba291427086c7c43d3.tar.bz2 |
* environ.cc (win_env::add_cache): Don't add variables to the environment
during initialization.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/environ.cc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index e63f702..6e8d91c 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2005-12-28 Christopher Faylor <cgf@timesys.com> + + * environ.cc (win_env::add_cache): Don't add variables to the + environment during initialization. + 2005-12-27 Corinna Vinschen <corinna@vinschen.de> * exceptions.cc (_cygtls::handle_exceptions): Drop redundant `break'. diff --git a/winsup/cygwin/environ.cc b/winsup/cygwin/environ.cc index af950dd..6658fd5 100644 --- a/winsup/cygwin/environ.cc +++ b/winsup/cygwin/environ.cc @@ -116,7 +116,7 @@ win_env::add_cache (const char *in_posix, const char *in_native) towin32 (in_posix, native + namelen); } MALLOC_CHECK; - if (immediate) + if (immediate && cygwin_finished_initializing) { char s[namelen]; size_t n = namelen - 1; |