提交 1c7d5871 编写于 作者: C cheng_jinsong

fix ut

Signed-off-by: Ncheng_jinsong <chengjinsong2@huawei.com>
上级 bb66eb32
......@@ -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.
先完成此消息的编辑!
想要评论请 注册