Commit b3e4a1dc authored by jan.koester's avatar jan.koester
Browse files

test

parent c3c3e990
Loading
Loading
Loading
Loading
+6 −0
Changes for src/plugin/PluginManager.cpp: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -27,7 +27,13 @@ void PluginManager::loadDirectory(const std::string &dir, const std::map<std::st
        if (fname.size() < 3 || fname.substr(fname.size() - 3) != ".so") continue;

        std::string path = dir + "/" + fname;



        void *handle = ::dlopen(path.c_str(), RTLD_NOW | RTLD_LOCAL);

        dlerror();

        if (!handle) {
            _errors.push_back(fname + ": " + std::string(::dlerror() ? ::dlerror() : "dlopen failed"));
            continue;