]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
lib/dns/rdata.c: Silence false positive nullPointerRedundantCheck warning from Cppcheck
authorOndřej Surý <ondrej@sury.org>
Fri, 27 Sep 2019 08:38:18 +0000 (10:38 +0200)
committerOndřej Surý <ondrej@sury.org>
Thu, 3 Oct 2019 07:50:26 +0000 (09:50 +0200)
(cherry picked from commit e68333aa67e304ff295820cadb7bbfb293e77111)

lib/dns/rdata.c

index d04f1bc8e583b9b6afe742435baa2be535e652ea..f7719c1f68090a2180b953339f2b61d749712270 100644 (file)
@@ -1202,7 +1202,7 @@ dns_rdata_tostruct(const dns_rdata_t *rdata, void *target, isc_mem_t *mctx) {
 void
 dns_rdata_freestruct(void *source) {
        dns_rdatacommon_t *common = source;
-       REQUIRE(source != NULL);
+       REQUIRE(common != NULL);
 
        FREESTRUCTSWITCH
 }