diff --git a/lib/isccfg/parser.c b/lib/isccfg/parser.c index b9eb914928..3a10d713f6 100644 --- a/lib/isccfg/parser.c +++ b/lib/isccfg/parser.c @@ -1304,7 +1304,7 @@ cfg_parse_boolean(cfg_parser_t *pctx, const cfg_type_t *type, cfg_obj_t **ret) cfg_obj_t *obj = NULL; REQUIRE(pctx != NULL); - REQUIRE(ret != NULL && ret != NULL); + REQUIRE(ret != NULL && *ret == NULL); UNUSED(type);