Commit 81ed3ddc authored by jan.koester's avatar jan.koester
Browse files

test

parent abecc5ce
Loading
Loading
Loading
Loading
+3 −1
Changes for src/plugin/PluginManager.cpp: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -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;
        }