diff --git a/services/common/src/parse_util.cpp b/services/common/src/parse_util.cpp index ec4bf201ab5046953f04f55ebbf57340fde04b8f..720a98e904c3dc48b1e5c31ba66329cca1990e95 100644 --- a/services/common/src/parse_util.cpp +++ b/services/common/src/parse_util.cpp @@ -698,7 +698,8 @@ bool ParseUtil::CheckLogicRelationship(const std::string& state, const std::stri logicRelationship = LESS; } } - int32_t stateInt, profileInt; + int32_t stateInt; + int32_t profileInt; if (!StrToInt(profile.substr(valueStartPosition, profile.length() - 1), profileInt)) { return false; }