update utils/load/src/plugin_loader.cpp.

Signed-off-by: xuerunlong <xuerunlong1@huawei.com>
This commit is contained in:
xuerunlong 2024-06-07 03:07:09 +00:00 committed by Gitee
parent 46edf30831
commit 1d4f7241ff
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -65,7 +65,7 @@ void PluginLoader::LoadCloudKitPlugin(bool isSupportCloudSync)
char resolvedPath[PATH_MAX] = {'\0'}; char resolvedPath[PATH_MAX] = {'\0'};
if (realpath(pluginFilePath.c_str(), resolvedPath) == nullptr) { if (realpath(pluginFilePath.c_str(), resolvedPath) == nullptr) {
LOGE("realpath failed in line path: %s", pluginFilePath.c_str()); LOGE("realpath failed in line path: %s", pluginFilePath.c_str());
reutrn; return;
} }
cloudKitPulginHandle_ = dlopen(pluginFilePath.c_str(), RTLD_LAZY); cloudKitPulginHandle_ = dlopen(pluginFilePath.c_str(), RTLD_LAZY);
if (cloudKitPulginHandle_ == nullptr) { if (cloudKitPulginHandle_ == nullptr) {