]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
move declaration to start of block
authorMark Andrews <marka@isc.org>
Wed, 6 Sep 2017 20:39:24 +0000 (06:39 +1000)
committerMark Andrews <marka@isc.org>
Wed, 6 Sep 2017 20:39:24 +0000 (06:39 +1000)
lib/dns/masterdump.c

index 082b61cdd90844ffd489b5af233bbdf6aeffd40d..145382503d6a6eadf872916124eba3f941297bf9 100644 (file)
@@ -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)