From e68333aa67e304ff295820cadb7bbfb293e77111 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Fri, 27 Sep 2019 10:38:18 +0200 Subject: [PATCH] lib/dns/rdata.c: Silence false positive nullPointerRedundantCheck warning from Cppcheck --- lib/dns/rdata.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dns/rdata.c b/lib/dns/rdata.c index bbbc33e8a9..6f4d544a9b 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 }