update services/bundlemgr_lite/src/gt_bundle_manager_service.cpp.

Signed-off-by: shilei91 <shilei91@huawei.com>
This commit is contained in:
shilei91
2022-11-18 09:04:55 +00:00
committed by Gitee
parent 1c20ee9ebf
commit 73454edcd1
@@ -350,6 +350,9 @@ void GtManagerService::InstallAllSystemBundle(InstallerCallback installerCallbac
PreAppList *currentNode = nullptr;
PreAppList *nextNode = nullptr;
LOS_DL_LIST_FOR_EACH_ENTRY_SAFE(currentNode, nextNode, &list->appDoubleList, PreAppList, appDoubleList) {
if (currentNode == nullptr) {
return;
}
if ((strcmp(((PreAppList *)currentNode)->filePath, ".") == 0) ||
(strcmp(((PreAppList *)currentNode)->filePath, "..") == 0)) {
continue;