Commit e9c51741 authored by G S Senthil Kumar's avatar G S Senthil Kumar Committed by Madan Lanka

Resolved simulator crash issue.

Simulator plug-in crashed due to recent changes in the OCDeviceInfo
structure in platform layer. Handled the changes required in simulater
module.

Change-Id: I8f4b31857b25628fa0ac888aeb42ee1e5d84885c
Signed-off-by: default avatarG S Senthil Kumar <senthil.gs@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/6221Reviewed-by: default avatarRadha Bhavani <radha.p@samsung.com>
Tested-by: default avatarjenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: default avatarMadan Lanka <lanka.madan@samsung.com>
parent 841fb714
......@@ -178,7 +178,7 @@ void SimulatorManager::setDeviceInfo(const std::string &deviceName)
typedef OCStackResult (*RegisterDeviceInfo)(const OCDeviceInfo);
OCDeviceInfo ocDeviceInfo;
OCDeviceInfo ocDeviceInfo {nullptr, nullptr};
ocDeviceInfo.deviceName = const_cast<char *>(deviceName.c_str());
invokeocplatform(static_cast<RegisterDeviceInfo>(OC::OCPlatform::registerDeviceInfo),
ocDeviceInfo);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment