]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
silence clang compiler warnings
authorMark Andrews <marka@isc.org>
Wed, 26 Mar 2014 05:20:31 +0000 (16:20 +1100)
committerMark Andrews <marka@isc.org>
Wed, 26 Mar 2014 05:20:31 +0000 (16:20 +1100)
lib/dns/zone.c

index 88f359cfa1ee05eff860e28cef838f1e77a135e9..f0b66cb128b5e049d6f2131677cde500994aaa4e 100644 (file)
@@ -4837,6 +4837,21 @@ zone_get_from_db(dns_zone_t *zone, dns_db_t *db, unsigned int *nscount,
 
        dns_db_currentversion(db, &version);
 
+       if (nscount != NULL)
+               *nscount = 0;
+       if (soacount != NULL)
+               *soacount = 0;
+       if (serial != NULL)
+               *serial = 0;
+       if (refresh != NULL)
+               *refresh = 0;
+       if (retry != NULL)
+               *retry = 0;
+       if (expire != NULL)
+               *expire = 0;
+       if (errors != NULL)
+               *errors = 0;
+
        node = NULL;
        result = dns_db_findnode(db, &zone->origin, ISC_FALSE, &node);
        if (result != ISC_R_SUCCESS) {
@@ -14014,7 +14029,6 @@ zone_replacedb(dns_zone_t *zone, dns_db_t *db, isc_boolean_t dump) {
            !DNS_ZONE_FLAG(zone, DNS_ZONEFLG_FORCEXFER))
        {
                isc_uint32_t serial, oldserial;
-               unsigned int soacount;
 
                dns_zone_log(zone, ISC_LOG_DEBUG(3), "generating diffs");