aboutsummaryrefslogtreecommitdiffstats
path: root/parameter/SystemClass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parameter/SystemClass.cpp')
-rw-r--r--parameter/SystemClass.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/parameter/SystemClass.cpp b/parameter/SystemClass.cpp
index e4fab19..8ab7c94 100644
--- a/parameter/SystemClass.cpp
+++ b/parameter/SystemClass.cpp
@@ -219,9 +219,13 @@ bool CSystemClass::loadPlugins(list<string>& lstrPluginFiles, list<string>& lstr
if (!lib_handle) {
+ const char *err = dlerror();
// Failed
- lstrError.push_back("Plugin load failed: " + string(dlerror()));
-
+ if (err == NULL) {
+ lstrError.push_back("dlerror failed");
+ } else {
+ lstrError.push_back("Plugin load failed: " + string(err));
+ }
// Next plugin
++it;