mirror of
https://gitee.com/openharmony/base_location
synced 2025-02-19 10:21:16 +00:00
code check bugfix
Signed-off-by: ruan-shaofei <ruanshaofei2020@163.com>
This commit is contained in:
parent
e08cf6b858
commit
787d2c870f
@ -1345,8 +1345,8 @@ int32_t LocatorAbilityStub::OnRemoteRequest(uint32_t code,
|
||||
identity.SetFirstTokenId(IPCSkeleton::GetFirstTokenID());
|
||||
|
||||
// first token id is invalid
|
||||
if (identity.GetUid() == identity.GetFirstTokenId() && identity.GetUid() == static_cast<pid_t>(getuid())
|
||||
&& identity.GetPid() == getpid()) {
|
||||
if (identity.GetUid() == static_cast<pid_t>(identity.GetFirstTokenId()) &&
|
||||
identity.GetUid() == static_cast<pid_t>(getuid()) && identity.GetPid() == getpid()) {
|
||||
identity.SetFirstTokenId(0);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user