]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Remove a dead assignment
authorOndřej Surý <ondrej@sury.org>
Tue, 5 Nov 2019 09:57:38 +0000 (10:57 +0100)
committerOndřej Surý <ondrej@sury.org>
Tue, 5 Nov 2019 22:07:07 +0000 (23:07 +0100)
This fixes the following scan-build warning:

zt.c:325:12: warning: Value stored to 'zt' during its initialization is never read
        dns_zt_t *zt = params->zt;
                  ^~   ~~~~~~~~~~
1 warning generated.

lib/dns/zt.c

index 38e1f6d7b7c19d7f110ec6e9008cb5a6c59e8961..04d7823d8b363d57b2efffb21289c8312ac9a2b1 100644 (file)
@@ -322,7 +322,7 @@ asyncload(dns_zone_t *zone, void *paramsv) {
        isc_result_t result;
        struct zt_load_params * params = (struct zt_load_params*) paramsv;
 
-       dns_zt_t *zt = params->zt;
+       dns_zt_t *zt;
 
        REQUIRE(zone != NULL);
        zt = dns_zone_getview(zone)->zonetable;