Fix warnings detected from static analysis 34/124234/1
authorMu-Woong Lee <muwoong.lee@samsung.com>
Tue, 11 Apr 2017 02:01:15 +0000 (11:01 +0900)
committerMu-Woong Lee <muwoong.lee@samsung.com>
Tue, 11 Apr 2017 02:01:15 +0000 (11:01 +0900)
Change-Id: Icf15e17a3fc8f08d55734ce6cfb51200f3ada511
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
src/agent/legacy/ProviderHandler.cpp
src/agent/legacy/access_control/Privilege.cpp

index 2ce7f69..62e1cf1 100644 (file)
@@ -29,6 +29,7 @@ std::map<std::string, ProviderHandler*> ProviderHandler::__instanceMap;
 
 ProviderHandler::ProviderHandler(const std::string &subject) :
        __subject(subject),
+       __provider(NULL),
        __deleteScheduled(false)
 {
        _D("Subject: %s", __subject.c_str());
index da2bdae..e10aa24 100644 (file)
@@ -27,7 +27,8 @@ class PermissionChecker {
 private:
        cynara *__cynara;
 
-       PermissionChecker()
+       PermissionChecker() :
+               __cynara(NULL)
        {
                cynara_configuration *conf;