]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
lib/isccfg/aclconf.c: Suppress nullPointerRedundantCheck false positive
authorOndřej Surý <ondrej@sury.org>
Fri, 27 Sep 2019 10:06:16 +0000 (12:06 +0200)
committerOndřej Surý <ondrej@sury.org>
Thu, 3 Oct 2019 07:50:27 +0000 (09:50 +0200)
(cherry picked from commit 09232213d70c2a746f18ee0e9797883b9fe43f57)

lib/isccfg/aclconf.c

index ae5ba8b692a38505fbaf2b67ea618122434dd287..528144e3992e4e91f8c59df2332ad340c7f88db5 100644 (file)
@@ -154,6 +154,7 @@ convert_named_acl(const cfg_obj_t *nameobj, const cfg_obj_t *cctx,
             dacl != NULL;
             dacl = ISC_LIST_NEXT(dacl, nextincache))
        {
+               /* cppcheck-suppress nullPointerRedundantCheck symbolName=dacl */
                if (strcasecmp(aclname, dacl->name) == 0) {
                        if (ISC_MAGIC_VALID(dacl, LOOP_MAGIC)) {
                                cfg_obj_log(nameobj, lctx, ISC_LOG_ERROR,