From eddf7d5858ffd0403a6e2b5f8ab03284526c631f Mon Sep 17 00:00:00 2001 From: Minji Park Date: Tue, 4 Aug 2015 10:18:59 +0900 Subject: [PATCH] initialize uninitialized variable of soft sensor manager initialize uninitialized variable of soft sensor manager to prevent potential problem Change-Id: Ib929923710162afc96b370f67332b18e19adbd66 Signed-off-by: Minji Park Reviewed-on: https://gerrit.iotivity.org/gerrit/2093 Tested-by: jenkins-iotivity Reviewed-by: Madan Lanka --- .../soft-sensor-manager/SSMCore/src/SSMInterface/SSMModelDefinition.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/service/soft-sensor-manager/SSMCore/src/SSMInterface/SSMModelDefinition.h b/service/soft-sensor-manager/SSMCore/src/SSMInterface/SSMModelDefinition.h index 42b62b3..2c33279 100644 --- a/service/soft-sensor-manager/SSMCore/src/SSMInterface/SSMModelDefinition.h +++ b/service/soft-sensor-manager/SSMCore/src/SSMInterface/SSMModelDefinition.h @@ -53,11 +53,13 @@ class ISSMResource ISSMResource() { location = SENSOR_LOCATION_LOCAL; + connectivityType = 0; } ISSMResource(const std::string &n, const std::string &t) : name(n), type(t) { location = SENSOR_LOCATION_LOCAL; + connectivityType = 0; } SENSOR_LOCATION location; std::string name; -- 2.7.4