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>2001-05-05 00:39:38 +0400
committerChristopher Faylor <me@cgf.cx>2001-05-05 00:39:38 +0400
commit17743fbc49ebb23300e0a36d8c5a27ed63e2bf41 (patch)
tree5ac0733972c757a0b3b75229f419add2a0a33902 /winsup/cygwin/environ.cc
parent8b3bcfbab9d0a96b133d6076971ea11bfd52e288 (diff)
* exceptions.cc (ctrl_c_handler): Always send signal to process if it has no
tty.
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 cf2e75930..d542d73c1 100644
--- a/winsup/cygwin/environ.cc
+++ b/winsup/cygwin/environ.cc
@@ -114,7 +114,7 @@ getwinenv (const char *env, const char *in_posix)
if (!cur_environ () || !(val = in_posix ?: getenv(we->name)))
debug_printf ("can't set native for %s since no environ yet",
we->name);
- else if (!envcache || !we->posix || strcmp (val, we->posix))
+ else if (!envcache || !we->posix || strcmp (val, we->posix) != 0)
we->add_cache (val);
return we;
}