From: Karol Pawlowski Date: Wed, 17 Apr 2013 13:54:38 +0000 (+0200) Subject: Fixing issues found by prevent (49866) X-Git-Tag: accepted/tizen_2.1/20130425.023916~5^2~16 X-Git-Url: http://review.tizen.org/git/?p=framework%2Fweb%2Fwrt-installer.git;a=commitdiff_plain;h=3f0e37ca620b957a1b62363bb53b52c286186456 Fixing issues found by prevent (49866) [Issue#] LINUXWRT-234 [Bug] Dereference null return value [Cause] N/A [Solution] Remove issues [Verification] Build wrt-installer repository Change-Id: Icd6e285caa74d9e99a029d6224edd27eafb9e13f --- diff --git a/src/jobs/plugin_install/plugin_install_task.cpp b/src/jobs/plugin_install/plugin_install_task.cpp index 2eccd38..c7a1fd8 100644 --- a/src/jobs/plugin_install/plugin_install_task.cpp +++ b/src/jobs/plugin_install/plugin_install_task.cpp @@ -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"); }