2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

Apply more SET_IF_NOT_NULL() changes

coccinelle v1.2 found more cases where the SET_IF_NOT_NULL macro
applies.
This commit is contained in:
Michal Nowak
2024-12-05 16:15:50 +01:00
parent f4377a3cd6
commit 57b64dc397
5 changed files with 12 additions and 36 deletions

View File

@@ -209,9 +209,7 @@ count_acl_elements(const cfg_obj_t *caml, const cfg_obj_t *cctx,
REQUIRE(count != NULL);
if (has_negative != NULL) {
*has_negative = false;
}
SET_IF_NOT_NULL(has_negative, false);
for (elt = cfg_list_first(caml); elt != NULL; elt = cfg_list_next(elt))
{