X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=service%2Fresource-container%2Fsrc%2FResourceContainerImpl.cpp;h=099acd56c0a7faf0890b7c2a6d9ba3e638e0a125;hb=3c093548382bb2542c87a67e6e5fa32552c29cb3;hp=e22692dc365e3385d21cd630f9aa95ac597e9097;hpb=edcfc3d2329da7b914771c0dcff5f42c9b74fd93;p=platform%2Fupstream%2Fiotivity.git diff --git a/service/resource-container/src/ResourceContainerImpl.cpp b/service/resource-container/src/ResourceContainerImpl.cpp index e22692d..099acd5 100644 --- a/service/resource-container/src/ResourceContainerImpl.cpp +++ b/service/resource-container/src/ResourceContainerImpl.cpp @@ -270,7 +270,7 @@ namespace OIC OIC_LOG_V(INFO, CONTAINER_TAG, "Unregister bundle: (%s)", std::string(m_bundles[id]->getID()).c_str()); - const char *error; + const char *error = NULL; dlclose(bundleHandle); if ((error = dlerror()) != NULL) @@ -690,7 +690,7 @@ namespace OIC void ResourceContainerImpl::registerSoBundle(shared_ptr bundleInfo) { OIC_LOG_V(DEBUG, CONTAINER_TAG, "Register SO bundle"); - const char *error; + const char *error = NULL; activator_t *bundleActivator = NULL; deactivator_t *bundleDeactivator = NULL; @@ -943,7 +943,7 @@ namespace OIC void ResourceContainerImpl::addSoBundleResource(const std::string &bundleId, resourceInfo newResourceInfo) { - resourceCreator_t *resourceCreator; + resourceCreator_t *resourceCreator = nullptr; resourceCreator = m_bundles[bundleId]->getResourceCreator();