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 17:37:00 +10:00
parent 89f7c7230d
commit df6951a2bb
+1 -1
View File
@@ -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);