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-09-06 08:41:59 +0400
committerChristopher Faylor <me@cgf.cx>2001-09-06 08:41:59 +0400
commit08b78edf5a6aceeb54ed848cc8479d4ca8bad4ca (patch)
treea894d2763c28d56bc24769252b17870c38ab7141 /winsup/cygwin/environ.cc
parent4ce15a498010f678c71cefdf2a2ac0db58f4fa93 (diff)
Remove initialization of static or global values to zero, throughout. This
just needlessly grows the size of the DLL. * tty.cc (tty::alive): Make inuse handle non-inheriting on open, just for thread safety.
Diffstat (limited to 'winsup/cygwin/environ.cc')
-rw-r--r--winsup/cygwin/environ.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/environ.cc b/winsup/cygwin/environ.cc
index 0e4e3310a..ab5766375 100644
--- a/winsup/cygwin/environ.cc
+++ b/winsup/cygwin/environ.cc
@@ -40,7 +40,7 @@ extern int subauth_id;
BOOL reset_com = TRUE;
static BOOL envcache = TRUE;
-static char **lastenviron = NULL;
+static char **lastenviron;
#define ENVMALLOC \
(CYGWIN_VERSION_DLL_MAKE_COMBINED (user_data->api_major, user_data->api_minor) \
@@ -641,7 +641,7 @@ environ_init (char **envp, int envc)
bool envp_passed_in;
static char cygterm[] = "TERM=cygwin";
- static int initted = 0;
+ static int initted;
if (!initted)
{
for (int i = 0; conv_envvars[i].name != NULL; i++)