From: Mark Andrews Date: Fri, 22 Dec 2017 02:08:39 +0000 (+1100) Subject: silence clang static analysis X-Git-Tag: v9.13.0~323 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f933be6d452986a657626fa774ad72f10b6f827f;p=thirdparty%2Fbind9.git silence clang static analysis --- diff --git a/bin/dnssec/dnssec-signzone.c b/bin/dnssec/dnssec-signzone.c index edeb60e3335..ea70f181dd9 100644 --- a/bin/dnssec/dnssec-signzone.c +++ b/bin/dnssec/dnssec-signzone.c @@ -3742,6 +3742,8 @@ main(int argc, char *argv[]) { if (nsec3iter > max) fatal("NSEC3 iterations too big for weakest DNSKEY " "strength. Maximum iterations allowed %u.", max); + } else { + hashlist_init(&hashlist, 0, 0); /* silence clang */ } gversion = NULL; @@ -3903,8 +3905,7 @@ main(int argc, char *argv[]) { dns_db_closeversion(gdb, &gversion, ISC_FALSE); dns_db_detach(&gdb); - if (IS_NSEC3) - hashlist_free(&hashlist); + hashlist_free(&hashlist); while (!ISC_LIST_EMPTY(keylist)) { key = ISC_LIST_HEAD(keylist);