Fix a rare crash with oddly formatted source files

This commit is contained in:
Jens Bäckman 2010-04-06 14:23:17 +02:00
parent c4d1d47f6b
commit 9ae714661b
1 changed files with 3 additions and 1 deletions

View File

@ -965,7 +965,9 @@ Token *CheckMemoryLeakInFunction::getcode(const Token *tok, std::list<const Toke
addtoken((dep ? "ifv" : "if"));
}
tok = tok->next()->link();
tok = tok->next();
if (tok->link())
tok = tok->link();
}
}
}