Fix a rare crash with oddly formatted source files
This commit is contained in:
parent
c4d1d47f6b
commit
9ae714661b
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue