Fixing issues found by prevent (49866)
authorKarol Pawlowski <k.pawlowski@samsung.com>
Wed, 17 Apr 2013 13:54:38 +0000 (15:54 +0200)
committerGerrit Code Review <gerrit2@kim11>
Thu, 18 Apr 2013 12:28:18 +0000 (21:28 +0900)
[Issue#] LINUXWRT-234
[Bug] Dereference null return value
[Cause] N/A
[Solution] Remove issues
[Verification] Build wrt-installer repository

Change-Id: Icd6e285caa74d9e99a029d6224edd27eafb9e13f

src/jobs/plugin_install/plugin_install_task.cpp

index 2eccd38..c7a1fd8 100644 (file)
@@ -189,7 +189,7 @@ void PluginInstallTask::stepLoadPluginLibrary()
     if (dlHandle == NULL) {
         LogError(
             "Failed to load plugin: " << filename <<
-            ". Reason: " << dlerror());
+            ". Reason: " << (dlerror() != NULL ? dlerror() : "unknown"));
         ThrowMsg(Exceptions::PluginLibraryError, "Library error");
     }