From 78aae1d6183577270afe6876fe5b5c394a3327fc Mon Sep 17 00:00:00 2001 From: zqq Date: Thu, 3 Mar 2022 19:13:31 +0800 Subject: [PATCH] dont close dir when it was null Signed-off-by: zqq --- .../common/interfaces/process_system_api_adapter_impl.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/services/distributeddataservice/libs/distributeddb/test/unittest/common/interfaces/process_system_api_adapter_impl.cpp b/services/distributeddataservice/libs/distributeddb/test/unittest/common/interfaces/process_system_api_adapter_impl.cpp index 8b451b370..821801545 100755 --- a/services/distributeddataservice/libs/distributeddb/test/unittest/common/interfaces/process_system_api_adapter_impl.cpp +++ b/services/distributeddataservice/libs/distributeddb/test/unittest/common/interfaces/process_system_api_adapter_impl.cpp @@ -72,7 +72,6 @@ DBStatus ProcessSystemApiAdapterImpl::SetSecurityOption(const std::string &fileP if (dirPtr == nullptr) { LOGD("set path secOpt![%s] [%d] [%d]", filePath.c_str(), option.securityFlag, option.securityLabel); pathSecOptDic_[filePath] = option; - closedir(dirPtr); return OK; } -- Gitee