未验证 提交 dd9af471 编写于 作者: O openharmony_ci 提交者: Gitee

!1428 挑单 https://gitee.com/openharmony/startup_init_lite/pulls/1393 到 monthly_20221018分支

Merge pull request !1428 from cheng_jinsong/cherry-pick-1666685770
......@@ -1003,7 +1003,10 @@ void ParseAllServices(const cJSON *fileRoot)
Service *service = GetServiceByName(fieldStr);
if (service == NULL) {
service = AddService(fieldStr);
INIT_ERROR_CHECK(service != NULL, continue, "Failed to add service name %s", fieldStr);
if (service == NULL) {
INIT_LOGE("Failed to add service name %s", fieldStr);
continue;
}
} else {
INIT_LOGI("Service %s already exists, updating.", fieldStr);
#ifndef __MUSL__
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册