These memcpy()
calls only happen if g_inet_address_get_family(group) == G_SOCKET_FAMILY_IPV4
, so the assertions should never fail.
It’s helpful for understanding the code, and for static analysis, to add the assertions though.
Signed-off-by: Philip Withnall pwithnall@endlessos.org
Coverity CID: #1486858