aboutsummaryrefslogtreecommitdiff
path: root/tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'tty.c')
-rw-r--r--tty.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tty.c b/tty.c
index d850347a..c6904409 100644
--- a/tty.c
+++ b/tty.c
@@ -49,6 +49,7 @@ tty_init(struct tty *tty, int fd, char *path, char *term)
{
tty->path = xstrdup(path);
tty->fd = fd;
+ tty->log_fd = -1;
if (term == NULL || *term == '\0')
tty->termname = xstrdup("unknown");