init: fix bugs

Signed-off-by: xionglei6 <xionglei6@huawei.com>
This commit is contained in:
xionglei6 2022-01-19 19:01:33 +08:00
parent 5fff585ccd
commit 287be83dc6

View File

@ -94,7 +94,7 @@ public:
INIT_ERROR_CHECK(fileBuf != nullptr, return -1, "Failed to read file content %s", configFile);
cJSON *fileRoot = cJSON_Parse(fileBuf);
INIT_ERROR_CHECK(fileRoot != nullptr, return -1, "Failed to parse json file %s", configFile);
ParseTriggerConfig(fileRoot);
ParseTriggerConfig(fileRoot, nullptr);
cJSON_Delete(fileRoot);
free(fileBuf);
fileBuf = nullptr;