Static code analysis scan issue fix
Fix the issues found during code static scan
Tested:test by IPMI command.
Change-Id: Iaa5598d77e457628b88530d026bf44ab43a47ef9
Signed-off-by: Chen Yugang <yugang.chen@linux.intel.com>
diff --git a/src/sensorcommands.cpp b/src/sensorcommands.cpp
index 2ef51f6..bebb482 100644
--- a/src/sensorcommands.cpp
+++ b/src/sensorcommands.cpp
@@ -675,8 +675,8 @@
throw std::runtime_error("Invalid sensor map");
}
- double max;
- double min;
+ double max = 0;
+ double min = 0;
getSensorMaxMin(sensorMap, max, min);
int16_t mValue = 0;