From 918549eb3151450239d659ae968cb9e68b863bfc Mon Sep 17 00:00:00 2001 From: dwmalone Date: Sat, 18 Nov 2000 15:17:43 +0000 Subject: Add the use of M_ZERO to netgraph. Submitted by: josh@zipperup.org Submitted by: Robert Drehmel Submitted by: archie Approved by: archie --- sys/netgraph/ng_tty.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/netgraph/ng_tty.c') 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; -- cgit v1.1