mirror of
https://gitee.com/openharmony/startup_init
synced 2024-12-13 22:21:05 +00:00
init: fix bugs
Signed-off-by: xionglei6 <xionglei6@huawei.com>
This commit is contained in:
parent
5fff585ccd
commit
287be83dc6
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user