diff options
Diffstat (limited to 'sys/netgraph/ng_tty.c')
-rw-r--r-- | sys/netgraph/ng_tty.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netgraph/ng_tty.c b/sys/netgraph/ng_tty.c index e217f3a..74e4d18 100644 --- a/sys/netgraph/ng_tty.c +++ b/sys/netgraph/ng_tty.c @@ -208,12 +208,11 @@ ngt_open(dev_t dev, struct tty *tp) } /* Initialize private struct */ - MALLOC(sc, sc_p, sizeof(*sc), M_NETGRAPH, M_WAITOK); + MALLOC(sc, sc_p, sizeof(*sc), M_NETGRAPH, M_WAITOK | M_ZERO); if (sc == NULL) { error = ENOMEM; goto done; } - bzero(sc, sizeof(*sc)); sc->tp = tp; sc->hotchar = NG_TTY_DFL_HOTCHAR; sc->qtail = &sc->qhead; |