diff --git a/src/inet/IPAddress.cpp b/src/inet/IPAddress.cpp index 3546df5acb0657..66ff7486846a7d 100644 --- a/src/inet/IPAddress.cpp +++ b/src/inet/IPAddress.cpp @@ -194,7 +194,7 @@ lwip_ip_addr_type IPAddress::ToLwIPAddrType(IPAddressType typ) ip6_addr_t IPAddress::ToIPv6() const { - ip6_addr_t ipAddr = { 0 }; + ip6_addr_t ipAddr = {}; static_assert(sizeof(ipAddr.addr) == sizeof(Addr), "ip6_addr_t size mismatch"); memcpy(&ipAddr.addr, Addr, sizeof(ipAddr.addr)); return ipAddr;