diff options
Diffstat (limited to 'winsup/cygwin/environ.cc')
-rw-r--r-- | winsup/cygwin/environ.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/environ.cc b/winsup/cygwin/environ.cc index cf2e759..d542d73 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; } |