cfg_parse_boolean's REQUIRE test for ret was incomplete.

(cherry picked from commit f1ee5e4a16)
This commit is contained in:
Mark Andrews
2018-06-27 11:10:59 +10:00
parent 68f7e8c4e8
commit a361eb660b

View File

@@ -1120,7 +1120,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);