提交 28f85486 编写于 作者: Chris_P927's avatar Chris_P927

fix Null Dereference

Signed-off-by: Chris_P927's avatarpanchengzhong <1144372483@qq.com>
上级 4967348e
......@@ -125,7 +125,7 @@ int ServiceExec(const Service *service)
int SetAccessToken(const Service *service)
{
INIT_ERROR_CHECK(service != NULL, return SERVICE_FAILURE, "%s failed", service->name);
INIT_ERROR_CHECK(service != NULL, return SERVICE_FAILURE, "service is null");
int ret = SetSelfTokenID(service->tokenId);
INIT_LOGI("%s: token id %lld, set token id result %d", service->name, service->tokenId, ret);
return ret == 0 ? SERVICE_SUCCESS : SERVICE_FAILURE;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册