From c87a3af2d655f6ed307bc743f3cab43b0b96047d Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Tue, 5 Dec 2000 17:23:45 +0000 Subject: [PATCH] another missing NULL initialization --- bin/named/server.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/named/server.c b/bin/named/server.c index 6d263446a1..5121636675 100644 --- a/bin/named/server.c +++ b/bin/named/server.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: server.c,v 1.268 2000/12/05 01:41:29 gson Exp $ */ +/* $Id: server.c,v 1.269 2000/12/05 17:23:45 gson Exp $ */ #include @@ -2287,7 +2287,7 @@ ns_listenelt_fromconfig(dns_c_lstnon_t *celt, dns_c_ctx_t *cctx, isc_result_t ns_server_dumpstats(ns_server_t *server) { isc_result_t result; - dns_zone_t *zone; + dns_zone_t *zone, *next; isc_stdtime_t now; FILE *fp = NULL; int i; @@ -2310,7 +2310,7 @@ ns_server_dumpstats(ns_server_t *server) { zone = NULL; for (result = dns_zone_first(server->zonemgr, &zone); result == ISC_R_SUCCESS; - result = dns_zone_next(zone, &zone)) + next = NULL, result = dns_zone_next(zone, &next), zone = next) { isc_uint64_t *zonestats = dns_zone_getstatscounters(zone); if (zonestats != NULL) {