uninitialized variables: handling loop bodies. end upon '}'

This commit is contained in:
Daniel Marjamäki 2010-10-24 18:28:25 +02:00
parent 6601de7681
commit 40aeb17738
1 changed files with 1 additions and 1 deletions

View File

@ -3651,7 +3651,7 @@ private:
{ {
while (tok) while (tok)
{ {
if (tok->str() == "{") if (tok->str() == "{" || tok->str() == "}")
return; return;
const Token *next = parse(*tok, checks); const Token *next = parse(*tok, checks);
if (next) if (next)