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:
Diffstat (limited to 'winsup/cygwin/pinfo.cc')
-rw-r--r--winsup/cygwin/pinfo.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc
index 832a3e6bc..2e336c1a3 100644
--- a/winsup/cygwin/pinfo.cc
+++ b/winsup/cygwin/pinfo.cc
@@ -769,7 +769,7 @@ commune_process (void *arg)
{
sigproc_printf ("processing PICOM_ENVIRON");
unsigned n = 0;
- char **env = cur_environ ();
+ char **env = environ;
if (env)
for (char **e = env; *e; e++)
n += strlen (*e) + 1;
@@ -1210,7 +1210,7 @@ _pinfo::environ (size_t& n)
return cr.s;
}
else
- env = cur_environ ();
+ env = ::environ;
if (env == NULL)
return NULL;