From 6b26b6ed316f4a4b32b66572e6b7e7a570a4bc06 Mon Sep 17 00:00:00 2001 From: Alexander Mai Date: Sat, 6 Sep 2014 22:27:13 +0200 Subject: [PATCH] Fix read access to uninitialized variable --- lib/valueflow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/valueflow.cpp b/lib/valueflow.cpp index 40fd3ba3d..df73e710d 100644 --- a/lib/valueflow.cpp +++ b/lib/valueflow.cpp @@ -130,7 +130,7 @@ static bool conditionIsTrue(const Token *condition, const std::map progmem(programMemory); bool error = false; - MathLib::bigint result; + MathLib::bigint result = 0; execute(condition, &progmem, &result, &error); return !error && result == 1; }