From 86c86693e367ce914e5cd132a8c7f7582e84bcba Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Thu, 7 Sep 2017 06:39:24 +1000 Subject: [PATCH] move declaration to start of block --- lib/dns/masterdump.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/dns/masterdump.c b/lib/dns/masterdump.c index 082b61cdd9..145382503d 100644 --- a/lib/dns/masterdump.c +++ b/lib/dns/masterdump.c @@ -1034,11 +1034,10 @@ dump_rdatasets_text(isc_mem_t *mctx, const dns_name_t *name, (ctx->style.flags & DNS_STYLEFLAG_NCACHE) == 0) { /* Omit negative cache entries */ } else { + isc_result_t result; if (rds->ttl < ctx->serve_stale_ttl) fprintf(f, "; stale\n"); - isc_result_t result = - dump_rdataset(mctx, name, rds, ctx, - buffer, f); + result = dump_rdataset(mctx, name, rds, ctx, buffer, f); if (result != ISC_R_SUCCESS) dumpresult = result; if ((ctx->style.flags & DNS_STYLEFLAG_OMIT_OWNER) != 0)