summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/tty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index 2670c9e..d69ae83 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -2403,7 +2403,6 @@ ttymalloc(tp)
return(tp);
tp = malloc(sizeof *tp, M_TTYS, M_WAITOK);
bzero(tp, sizeof *tp);
- tp->t_timeout = -1;
ttyregister(tp);
return (tp);
}
@@ -2425,6 +2424,7 @@ void
ttyregister(tp)
struct tty *tp;
{
+ tp->t_timeout = -1;
SLIST_INSERT_HEAD(&tty_list, tp, t_list);
}
OpenPOWER on IntegriCloud