]> git.ipfire.org Git - thirdparty/bind9.git/commit
Use designated initializers instead of memset()/MEM_ZERO for structs
authorOndřej Surý <ondrej@isc.org>
Fri, 26 Aug 2022 09:58:51 +0000 (11:58 +0200)
committerOndřej Surý <ondrej@isc.org>
Wed, 5 Oct 2022 14:44:05 +0000 (16:44 +0200)
commitc0598d404c09f34441c971347a25f5cb8ea47996
tree8b7878669813c9657e8598fefd9bba8e4be016fc
parentc1d26b53eb69fc23de0fec692c8ae6b1e3b88513
Use designated initializers instead of memset()/MEM_ZERO for structs

In several places, the structures were cleaned with memset(...)) and
thus the semantic patch converted the isc_mem_get(...) to
isc_mem_getx(..., ISC_MEM_ZERO).  Use the designated initializer to
initialized the structures instead of zeroing the memory with
ISC_MEM_ZERO flag as this better matches the intended purpose.
20 files changed:
bin/delv/delv.c
bin/dig/dig.c
bin/dig/dighost.c
bin/dnssec/dnssec-cds.c
bin/named/dlz_dlopen_driver.c
bin/plugins/filter-a.c
bin/plugins/filter-aaaa.c
lib/dns/badcache.c
lib/dns/dlz.c
lib/dns/dnsrps.c
lib/dns/dnstap.c
lib/dns/dst_api.c
lib/dns/dyndb.c
lib/dns/rrl.c
lib/dns/sdb.c
lib/dns/sdlz.c
lib/isc/portset.c
lib/isc/tls.c
lib/ns/hooks.c
lib/ns/server.c