Resolved simulator crash issue.
authorG S Senthil Kumar <senthil.gs@samsung.com>
Wed, 23 Mar 2016 09:31:57 +0000 (15:01 +0530)
committerMadan Lanka <lanka.madan@samsung.com>
Thu, 24 Mar 2016 01:16:50 +0000 (01:16 +0000)
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: G S Senthil Kumar <senthil.gs@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/6221
Reviewed-by: Radha Bhavani <radha.p@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
service/simulator/src/simulator_manager.cpp

index 5db5c51..2f0fb29 100644 (file)
@@ -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);