Skip to content

Commit

Permalink
Fixed PVS-Studio warning
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpevzner committed May 6, 2020
1 parent f25e75e commit c500970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airscan.h
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ ip_addr_make (int ifindex, int af, const void *addr)

switch (ip_addr.af) {
case AF_INET:
memcpy(&ip_addr.ip, addr, 4);
memcpy(&ip_addr.ip.v4, addr, 4);
break;

case AF_INET6:
Expand Down

0 comments on commit c500970

Please sign in to comment.