IOT-2539 Fix -Wmissing-field-initializers
[iotivity.git] / service / simulator / src / simulator_manager.cpp
index 148885e..c738e61 100644 (file)
@@ -186,7 +186,7 @@ void SimulatorManager::setDeviceInfo(const std::string &deviceName)
 
     typedef OCStackResult (*RegisterDeviceInfo)(const OCDeviceInfo);
 
-    OCDeviceInfo ocDeviceInfo {nullptr, nullptr};
+    OCDeviceInfo ocDeviceInfo {nullptr, nullptr, nullptr, nullptr};
     ocDeviceInfo.deviceName = const_cast<char *>(deviceName.c_str());
     invokeocplatform(static_cast<RegisterDeviceInfo>(OC::OCPlatform::registerDeviceInfo),
                      ocDeviceInfo);