aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/tty.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/tty.cc')
-rw-r--r--winsup/cygwin/tty.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/tty.cc b/winsup/cygwin/tty.cc
index 6ced84b..fd8132c 100644
--- a/winsup/cygwin/tty.cc
+++ b/winsup/cygwin/tty.cc
@@ -200,6 +200,7 @@ tty_list::allocate_tty (bool with_console)
{
HWND console;
int freetty = -1;
+ HANDLE hmaster = NULL;
/* FIXME: This whole function needs a protective mutex. */
@@ -237,7 +238,6 @@ tty_list::allocate_tty (bool with_console)
}
}
- HANDLE hmaster = NULL;
/* Is a tty allocated for console? */
for (int i = 0; i < NTTYS; i++)
{