From: Ondřej Surý Date: Fri, 27 Sep 2019 08:38:18 +0000 (+0200) Subject: lib/dns/rdata.c: Silence false positive nullPointerRedundantCheck warning from Cppcheck X-Git-Tag: v9.15.6~72^2~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e68333aa67e304ff295820cadb7bbfb293e77111;p=thirdparty%2Fbind9.git lib/dns/rdata.c: Silence false positive nullPointerRedundantCheck warning from Cppcheck --- diff --git a/lib/dns/rdata.c b/lib/dns/rdata.c index bbbc33e8a99..6f4d544a9b2 100644 --- a/lib/dns/rdata.c +++ b/lib/dns/rdata.c @@ -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 }