int BMISensor::executeBMISensorLogic(std::map<std::string, std::string> *pInputData,
std::string *pOutput)
{
- BMIResult result;
+ BMIResult result = ERROR;
if (pInputData->find("weight") != pInputData->end())
{
*/
BMIResult BMISensor::makeBMI(void)
{
- double BMIvalue, timediffsecond;
- double dWeight, dHeight;
+ double BMIvalue = 0.0;
+ double timediffsecond = 0.0;
+ double dWeight = 0.0;
+ double dHeight = 0.0;
- int BMIResult;
+ int BMIResult = 0;
if (!m_weight.empty() && !m_height.empty())
{
}
return ERROR;
-}
\ No newline at end of file
+}