Fixed #786 (memleak: segmentation fault for 'if TRACE_ON(x)')

This commit is contained in:
Daniel Marjamäki 2009-10-04 19:30:25 +02:00
parent ab18f1bd3c
commit 4a66edd408
1 changed files with 1 additions and 1 deletions

View File

@ -663,7 +663,7 @@ Token *CheckMemoryLeakInFunction::getcode(const Token *tok, std::list<const Toke
continue;
}
if (tok->str() == "if")
if (Token::simpleMatch(tok, "if ("))
{
addtoken("if");
tok = tok->next()->link();