From: Evan Hunt Date: Wed, 8 Aug 2018 03:11:46 +0000 (-0700) Subject: Silence a compiler warning on openbsd and fix windows build X-Git-Tag: v9.13.3~74^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b55338e4476f8eff44fa0b6693609e078586b95a;p=thirdparty%2Fbind9.git Silence a compiler warning on openbsd and fix windows build --- diff --git a/lib/dns/rdataset.c b/lib/dns/rdataset.c index 448e12aa3b7..c1bbbc2152e 100644 --- a/lib/dns/rdataset.c +++ b/lib/dns/rdataset.c @@ -400,6 +400,9 @@ towiresorted(dns_rdataset_t *rdataset, const dns_name_t *owner_name, } if ((shuffle || sort)) { + isc_uint32_t seed = 0; + unsigned int j; + /* * First we get handles to all of the rdata. */ @@ -416,8 +419,6 @@ towiresorted(dns_rdataset_t *rdataset, const dns_name_t *owner_name, } INSIST(i == count); - unsigned int j; - isc_uint32_t seed; if (ISC_LIKELY(want_random)) { seed = isc_random32(); j = 0;