diff options
| author | David Malone <dwmalone@FreeBSD.org> | 2000-12-08 21:51:06 +0000 |
|---|---|---|
| committer | David Malone <dwmalone@FreeBSD.org> | 2000-12-08 21:51:06 +0000 |
| commit | 7cc0979fd64b721c92c3dd4a8688b56e15c9a5f9 (patch) | |
| tree | c383ffd6da8fbab2789828310191f8717f675124 /sys/kern/tty.c | |
| parent | b1f3daafde37fa36b819c0649c121d98175a6a2d (diff) | |
Notes
Diffstat (limited to 'sys/kern/tty.c')
| -rw-r--r-- | sys/kern/tty.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index ce11ea52017c..b80d2660a6ac 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); } |
