summaryrefslogtreecommitdiffstats
path: root/sshpty.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshpty.c')
-rw-r--r--sshpty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sshpty.c b/sshpty.c
index 4747ceaf..50b1f2ba 100644
--- a/sshpty.c
+++ b/sshpty.c
@@ -343,7 +343,7 @@ pty_make_controlling_tty(int *ttyfd, const char *ttyname)
if (fd < 0)
error("open /dev/tty failed - could not set controlling tty: %.100s",
strerror(errno));
- else
+ else
close(fd);
#endif /* _UNICOS */
}