diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2000-11-18 15:17:43 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2000-11-18 15:17:43 +0000 |
commit | 918549eb3151450239d659ae968cb9e68b863bfc (patch) | |
tree | 5e63335d7dfc31ef8cf13f89356a8b83776cef7e /sys/netgraph/ng_parse.c | |
parent | f96d89a937a5b22a14182cb1b88b68dc430ee718 (diff) | |
download | FreeBSD-src-918549eb3151450239d659ae968cb9e68b863bfc.zip FreeBSD-src-918549eb3151450239d659ae968cb9e68b863bfc.tar.gz |
Add the use of M_ZERO to netgraph.
Submitted by: josh@zipperup.org
Submitted by: Robert Drehmel <robd@gmx.net>
Submitted by: archie
Approved by: archie
Diffstat (limited to 'sys/netgraph/ng_parse.c')
-rw-r--r-- | sys/netgraph/ng_parse.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netgraph/ng_parse.c b/sys/netgraph/ng_parse.c index 83bcb11..15d122e 100644 --- a/sys/netgraph/ng_parse.c +++ b/sys/netgraph/ng_parse.c @@ -1122,12 +1122,11 @@ ng_parse_composite(const struct ng_parse_type *type, const char *s, int align, len, blen, error = 0; /* Initialize */ - MALLOC(foff, int *, num * sizeof(*foff), M_NETGRAPH, M_NOWAIT); + MALLOC(foff, int *, num * sizeof(*foff), M_NETGRAPH, M_NOWAIT | M_ZERO); if (foff == NULL) { error = ENOMEM; goto done; } - bzero(foff, num * sizeof(*foff)); /* Get opening brace/bracket */ if (ng_parse_get_token(s, off, &len) |