From b3c9a01e5e3f482854b063a6d585ac88ac9a7bc1 Mon Sep 17 00:00:00 2001 From: Bruce M Simpson Date: Tue, 6 Jul 2004 03:28:24 +0000 Subject: [PATCH] Use M_ZERO instead of memset() (!). --- sys/net/if_gre.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/net/if_gre.c b/sys/net/if_gre.c index f8ea058f666e..a5dcc7d7530e 100644 --- a/sys/net/if_gre.c +++ b/sys/net/if_gre.c @@ -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;