]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Small cleanup in dns_adb unit
authorOndřej Surý <ondrej@isc.org>
Mon, 17 Mar 2025 14:23:00 +0000 (15:23 +0100)
committerEvan Hunt <each@isc.org>
Mon, 17 Mar 2025 23:23:24 +0000 (23:23 +0000)
lib/dns/adb.c

index 0b47145c3dfe03b7258641df5c5833876f198434..d32c56f3b711721305c25ccb53b7c45da9e86f7f 100644 (file)
@@ -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;
 }