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)
void ResourceContainerImpl::registerSoBundle(shared_ptr<RCSBundleInfo> 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;
void ResourceContainerImpl::addSoBundleResource(const std::string &bundleId,
resourceInfo newResourceInfo)
{
- resourceCreator_t *resourceCreator;
+ resourceCreator_t *resourceCreator = nullptr;
resourceCreator = m_bundles[bundleId]->getResourceCreator();