CheckAssert: Fixed 'NULL pointer check and dereference code'

This commit is contained in:
Daniel Marjamäki 2013-05-15 16:40:50 +02:00
parent fe21f6f532
commit 18116ab61e
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ void CheckAssert::assertWithSideEffects()
if (!scope) continue;
for (const Token *tok2 = scope->classStart; tok2 != scope->classEnd; tok2 = tok2->next()) {
if (tok2 && tok2->type() != Token::eAssignmentOp && tok2->type() != Token::eIncDecOp) continue;
if (tok2->type() != Token::eAssignmentOp && tok2->type() != Token::eIncDecOp) continue;
const Variable* var = tok2->previous()->variable();
if (!var) continue;