1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Use M_ZERO instead of memset() (!).

This commit is contained in:
Bruce M Simpson 2004-07-06 03:28:24 +00:00
parent e1a8c3dc33
commit b3c9a01e5e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=131673

View File

@ -167,8 +167,7 @@ gre_clone_create(ifc, unit)
{
struct gre_softc *sc;
sc = malloc(sizeof(struct gre_softc), M_GRE, M_WAITOK);
memset(sc, 0, sizeof(struct gre_softc));
sc = malloc(sizeof(struct gre_softc), M_GRE, M_WAITOK | M_ZERO);
if_initname(&sc->sc_if, ifc->ifc_name, unit);
sc->sc_if.if_softc = sc;