Fixed #2590 (segmentation fault of cppcheck ( {}int ))
This commit is contained in:
parent
7e5d8e42d4
commit
85b1ea21cf
|
@ -321,7 +321,7 @@ void CheckOther::checkSelfAssignment()
|
|||
std::set<unsigned int> pod;
|
||||
for (const Token *tok = _tokenizer->tokens(); tok; tok = tok->next())
|
||||
{
|
||||
if (tok->isStandardType() && tok->next()->varId() && Token::Match(tok->tokAt(2), "[,);]"))
|
||||
if (tok->isStandardType() && Token::Match(tok->tokAt(2), "[,);]") && tok->next()->varId())
|
||||
pod.insert(tok->next()->varId());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue