]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Suppress cppcheck warning
authorMark Andrews <marka@isc.org>
Fri, 29 Oct 2021 21:21:02 +0000 (08:21 +1100)
committerMark Andrews <marka@isc.org>
Mon, 1 Nov 2021 06:42:37 +0000 (17:42 +1100)
Warning "Either the condition '(child)==((void*)0)' is redundant
or there is possible null pointer dereference: child."

Add "cppcheck-suppress nullPointerRedundantCheck symbolName=child"

lib/dns/rbt.c

index 71d04c5f1e0ee8713cc4fd26a8357a6d8c030918..638914f9e95f1fd53dea41692b6c3a0d1675fac3 100644 (file)
@@ -2215,6 +2215,8 @@ deletefromlevel(dns_rbtnode_t *item, dns_rbtnode_t **rootp) {
                                }
                        }
 
+                       /* cppcheck-suppress nullPointerRedundantCheck
+                        * symbolName=child */
                        parent = PARENT(child);
                }