Fix read access to uninitialized variable
This commit is contained in:
parent
efab840b50
commit
6b26b6ed31
|
@ -130,7 +130,7 @@ static bool conditionIsTrue(const Token *condition, const std::map<unsigned int,
|
|||
}
|
||||
std::map<unsigned int, MathLib::bigint> progmem(programMemory);
|
||||
bool error = false;
|
||||
MathLib::bigint result;
|
||||
MathLib::bigint result = 0;
|
||||
execute(condition, &progmem, &result, &error);
|
||||
return !error && result == 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue