Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-12-29 06:46:56 +0300
committerChristopher Faylor <me@cgf.cx>2005-12-29 06:46:56 +0300
commit77ae8757f771cca2566040ba291427086c7c43d3 (patch)
treef322d96548acfe1121b8381fced60767a53f03bc /winsup/cygwin/environ.cc
parent20e84812d2e9e4aa9a979f305729c44b6decc64f (diff)
* environ.cc (win_env::add_cache): Don't add variables to the environment
during initialization.
Diffstat (limited to 'winsup/cygwin/environ.cc')
-rw-r--r--winsup/cygwin/environ.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/environ.cc b/winsup/cygwin/environ.cc
index af950dd05..6658fd5dc 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;