From: Ondřej Surý Date: Mon, 17 Mar 2025 14:23:00 +0000 (+0100) Subject: Small cleanup in dns_adb unit X-Git-Tag: v9.21.7~48^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff73d37f69c27b61c7dc5a360116ee749fcb401f;p=thirdparty%2Fbind9.git Small cleanup in dns_adb unit --- diff --git a/lib/dns/adb.c b/lib/dns/adb.c index 0b47145c3df..d32c56f3b71 100644 --- a/lib/dns/adb.c +++ b/lib/dns/adb.c @@ -1076,11 +1076,11 @@ new_adbfetch(dns_adb_t *adb) { dns_adbfetch_t *fetch = NULL; fetch = isc_mem_get(adb->hmctx, sizeof(*fetch)); - *fetch = (dns_adbfetch_t){ 0 }; + *fetch = (dns_adbfetch_t){ + .magic = DNS_ADBFETCH_MAGIC, + }; dns_rdataset_init(&fetch->rdataset); - fetch->magic = DNS_ADBFETCH_MAGIC; - return fetch; }