From 40aeb177380e52a79745f3f5e05a2d19d1f5da57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sun, 24 Oct 2010 18:28:25 +0200 Subject: [PATCH] uninitialized variables: handling loop bodies. end upon '}' --- lib/checkother.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkother.cpp b/lib/checkother.cpp index 34962ea92..d3bbc7221 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -3651,7 +3651,7 @@ private: { while (tok) { - if (tok->str() == "{") + if (tok->str() == "{" || tok->str() == "}") return; const Token *next = parse(*tok, checks); if (next)