diff options
author | Takashi Yano <takashi.yano@nifty.ne.jp> | 2019-11-07 01:29:29 +0900 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2019-11-08 10:08:45 +0100 |
commit | 3880efb28390fe52e03de82b3b1e817a35b62577 (patch) | |
tree | 871b35abed67be65e1a129c9d8d6f63da1e0366c /winsup/cygwin/environ.cc | |
parent | e5db0d2fe06d66607f7d3423f75451fab2bda6ee (diff) | |
download | newlib-3880efb28390fe52e03de82b3b1e817a35b62577.zip newlib-3880efb28390fe52e03de82b3b1e817a35b62577.tar.gz newlib-3880efb28390fe52e03de82b3b1e817a35b62577.tar.bz2 |
Cygwin: console, pty: Prevent error in legacy console mode.
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 8fa01b2..8c5ce64 100644 --- a/winsup/cygwin/environ.cc +++ b/winsup/cygwin/environ.cc @@ -859,6 +859,7 @@ environ_init (char **envp, int envc) __endtry } +int sawTERM = 0; char ** __reg2 win32env_to_cygenv (PWCHAR rawenv, bool posify) @@ -868,7 +869,6 @@ win32env_to_cygenv (PWCHAR rawenv, bool posify) int envc; char *newp; int i; - int sawTERM = 0; const char cygterm[] = "TERM=cygwin"; const char xterm[] = "TERM=xterm-256color"; char *tmpbuf = tp.t_get (); |