Loading src/plugin/PluginManager.cpp +3 −1 Changes for src/plugin/PluginManager.cpp: 3 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -31,7 +31,9 @@ void PluginManager::loadDirectory(const std::string &dir, const std::map<std::st void *handle = ::dlopen(path.c_str(), RTLD_NOW | RTLD_LOCAL); if (!handle) { _errors.push_back(fname + ": " + std::string(::dlerror() ? ::dlerror() : "dlopen failed")); // dlerror() hands its message out once and clears it: read it a single time const char *err = ::dlerror(); _errors.push_back(fname + ": " + (err ? err : "dlopen failed")); continue; } Loading Loading
src/plugin/PluginManager.cpp +3 −1 Changes for src/plugin/PluginManager.cpp: 3 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -31,7 +31,9 @@ void PluginManager::loadDirectory(const std::string &dir, const std::map<std::st void *handle = ::dlopen(path.c_str(), RTLD_NOW | RTLD_LOCAL); if (!handle) { _errors.push_back(fname + ": " + std::string(::dlerror() ? ::dlerror() : "dlopen failed")); // dlerror() hands its message out once and clears it: read it a single time const char *err = ::dlerror(); _errors.push_back(fname + ": " + (err ? err : "dlopen failed")); continue; } Loading