mirror of
https://gitee.com/openharmony/startup_init
synced 2024-11-24 00:30:12 +00:00
fix_so
Signed-off-by: chenshixu1 <chenshixu1@huawei.com>
This commit is contained in:
parent
bddd8de560
commit
4899ba31b8
@ -768,7 +768,7 @@ long long GetSystemCommitId(void)
|
||||
{
|
||||
PARAM_WORKSPACE_CHECK(GetParamWorkSpace(), return -1, "Param workspace has not init.");
|
||||
WorkSpace *space = GetWorkSpace(WORKSPACE_INDEX_DAC);
|
||||
if (space == NULL) {
|
||||
if (space == NULL || space->area == NULL) {
|
||||
return 0;
|
||||
}
|
||||
return ATOMIC_UINT64_LOAD_EXPLICIT(&space->area->commitId, MEMORY_ORDER_ACQUIRE);
|
||||
|
Loading…
Reference in New Issue
Block a user