Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
sunos: replace bzero with memset
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Jun 22, 2012
1 parent c222f07 commit 2a5ff05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/unix/sunos.c
Expand Up @@ -442,7 +442,8 @@ uv_err_t uv_interface_addresses(uv_interface_address_t** addresses,
address = *addresses;

for (ent = addrs; ent != NULL; ent = ent->ifa_next) {
bzero(&ip, sizeof (ip));
memset(&ip, 0, sizeof(ip));

if (!(ent->ifa_flags & IFF_UP && ent->ifa_flags & IFF_RUNNING)) {
continue;
}
Expand Down

0 comments on commit 2a5ff05

Please sign in to comment.