Replace a call to bzero() with an M_ZERO flag. Replace the MALLOC() with
malloc().
This commit is contained in:
parent
4321c5077c
commit
b1b70498ba
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=125030
@ -217,10 +217,9 @@ ng_source_constructor(node_p node)
|
||||
{
|
||||
sc_p sc;
|
||||
|
||||
MALLOC(sc, sc_p, sizeof(*sc), M_NETGRAPH, M_NOWAIT);
|
||||
sc = malloc(sizeof(*sc), M_NETGRAPH, M_NOWAIT | M_ZERO);
|
||||
if (sc == NULL)
|
||||
return (ENOMEM);
|
||||
bzero(sc, sizeof(*sc));
|
||||
|
||||
NG_NODE_SET_PRIVATE(node, sc);
|
||||
sc->node = node;
|
||||
|
Loading…
Reference in New Issue
Block a user