Fixed #4484 (1.58: new crash for linux kernel code)

This commit is contained in:
Erik Lax 2013-01-13 07:57:46 +01:00 committed by Daniel Marjamäki
parent 57d67c5883
commit b538c50856
1 changed files with 1 additions and 1 deletions

View File

@ -1173,7 +1173,7 @@ void CheckUnusedVar::checkStructMemberUsage()
// bail out for extern/global struct
for (const Token *tok2 = Token::findmatch(tok, (structname + " %var%").c_str());
tok2;
tok2 && tok2->next();
tok2 = Token::findmatch(tok2->next(), (structname + " %var%").c_str())) {
const Variable *var = _tokenizer->getSymbolDatabase()->getVariableFromVarId(tok2->next()->varId());