From 586037ed112978a3cc476b188232331d503d9047 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 24 Mar 2009 20:28:44 +0100 Subject: [PATCH] fixed testcase --- src/checkother.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/checkother.cpp b/src/checkother.cpp index 0822cb0ff..6ae5fb0f9 100644 --- a/src/checkother.cpp +++ b/src/checkother.cpp @@ -564,7 +564,7 @@ void CheckOther::CheckVariableScope_LookupVar(const Token *tok1, const char varn { if (for_or_while && used) return; - used1 = used; + used1 |= used; used = false; } }