Use M_ZERO instead of bzero().
This commit is contained in:
parent
45329b8ee6
commit
e1a8c3dc33
@ -143,8 +143,7 @@ gif_clone_create(ifc, unit)
|
||||
{
|
||||
struct gif_softc *sc;
|
||||
|
||||
sc = malloc (sizeof(struct gif_softc), M_GIF, M_WAITOK);
|
||||
bzero(sc, sizeof(struct gif_softc));
|
||||
sc = malloc(sizeof(struct gif_softc), M_GIF, M_WAITOK | M_ZERO);
|
||||
|
||||
sc->gif_if.if_softc = sc;
|
||||
if_initname(&sc->gif_if, ifc->ifc_name, unit);
|
||||
|
Loading…
Reference in New Issue
Block a user