summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_tty.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/fhandler_tty.cc')
-rw-r--r--winsup/cygwin/fhandler_tty.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc
index 78e149ba4..7e8254c3c 100644
--- a/winsup/cygwin/fhandler_tty.cc
+++ b/winsup/cygwin/fhandler_tty.cc
@@ -629,11 +629,10 @@ fhandler_tty_slave::close ()
close this normally. cgf 2006-05-20 */
cygheap->manage_console_count ("fhandler_tty_slave::close", -1);
- if (archetype)
- archetype->usecount--;
+ archetype->usecount--;
report_tty_counts (this, "closed", "");
- if (archetype && archetype->usecount)
+ if (archetype->usecount)
{
#ifdef DEBUGGING
if (archetype->usecount < 0)