summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r--sys/kern/tty.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index ce11ea5..b80d266 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -2423,8 +2423,7 @@ ttymalloc(tp)
if (tp)
return(tp);
- tp = malloc(sizeof *tp, M_TTYS, M_WAITOK);
- bzero(tp, sizeof *tp);
+ tp = malloc(sizeof *tp, M_TTYS, M_WAITOK | M_ZERO);
ttyregister(tp);
return (tp);
}
OpenPOWER on IntegriCloud