提交 dcac61fa 编写于 作者: X xionglei6

init: fix bugs .

Signed-off-by: Nxionglei6 <xionglei6@huawei.com>
上级 a8ec7337
......@@ -647,7 +647,7 @@ Service *GetServiceByName(const char *servName)
ListNode *node = g_serviceSpace.services.next;
while (node != &g_serviceSpace.services) {
Service *service = ListEntry(node, Service, node);
if ((service != NULL) && (service->name != NULL)) {
if (service != NULL) {
INIT_CHECK_RETURN_VALUE(strcmp(service->name, servName) != 0, service);
}
node = node->next;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册