]> 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:04:26 +0000 (09:04 +0200)
lib/dns/rdata.c

index bbbc33e8a99a571121e448cdc23c1177d0b7412b..6f4d544a9b2fdee3662e070983c20930132fd35a 100644 (file)
@@ -1199,7 +1199,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
 }