Mercurial > ecos
diff packages/io/eth/current/src/net/eth_drv.c @ 149:52c99470ec11
Merge from eCos master repository on 2001-01-19-06:43:03-GMT
| author | jlarmour |
|---|---|
| date | Fri, 19 Jan 2001 07:37:45 +0000 |
| parents | d397fc472bcf |
| children | 0d0f03f76f6a |
line wrap: on
line diff
--- a/packages/io/eth/current/src/net/eth_drv.c +++ b/packages/io/eth/current/src/net/eth_drv.c @@ -295,7 +295,8 @@ eth_drv_init(struct eth_drv_sc *sc, unsi struct ifnet *ifp = &sc->sc_arpcom.ac_if; // Set up hardware address - bcopy(enaddr, &sc->sc_arpcom.ac_enaddr, ETHER_ADDR_LEN); + if (NULL != enaddr) + bcopy(enaddr, &sc->sc_arpcom.ac_enaddr, ETHER_ADDR_LEN); // Initialize ifnet structure bcopy((void *)sc->dev_name, ifp->if_xname, IFNAMSIZ);
