From: Mark Andrews Date: Wed, 6 Sep 2017 02:16:10 +0000 (+1000) Subject: silence 'staleanswersok' may be used uninitialized in this function warning. [RT... X-Git-Tag: v9.12.0a1~48 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=b56021f0bee46db547a5aa3e78380b338fd2f1bb;p=thirdparty%2Fbind9.git silence 'staleanswersok' may be used uninitialized in this function warning. [RT #14147 --- diff --git a/bin/named/server.c b/bin/named/server.c index e8ecb88ed33..3c486bcdcc5 100644 --- a/bin/named/server.c +++ b/bin/named/server.c @@ -14144,7 +14144,7 @@ ns_server_servestale(ns_server_t *server, isc_lex_t *lex, dns_rdataclass_t rdclass = dns_rdataclass_in; dns_view_t *view; isc_boolean_t found = ISC_FALSE; - dns_stale_answer_t staleanswersok; + dns_stale_answer_t staleanswersok = dns_stale_answer_conf; isc_boolean_t wantstatus = ISC_FALSE; isc_result_t result = ISC_R_SUCCESS;