From: Mark Andrews Date: Thu, 25 Nov 2021 05:13:46 +0000 (+1100) Subject: use .s_addr to handle potential union in struct in_addr X-Git-Tag: v9.17.21~19^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1092d8e25a36663ec2a9c02935ab69e589b6459a;p=thirdparty%2Fbind9.git use .s_addr to handle potential union in struct in_addr --- diff --git a/lib/isc/tests/doh_test.c b/lib/isc/tests/doh_test.c index cae2548c075..117728554da 100644 --- a/lib/isc/tests/doh_test.c +++ b/lib/isc/tests/doh_test.c @@ -2066,7 +2066,7 @@ doh_path_validation(void **state) { static void doh_connect_makeuri(void **state) { - struct in_addr localhostv4 = { ntohl(INADDR_LOOPBACK) }; + struct in_addr localhostv4 = { .s_addr = ntohl(INADDR_LOOPBACK) }; isc_sockaddr_t sa; char uri[256]; UNUSED(state);