Simplify null pointer handling

This commit is contained in:
Dmitry-Me 2014-09-09 13:11:41 +04:00
parent f111a89639
commit 0a1b8c22d6
1 changed files with 1 additions and 1 deletions

View File

@ -1864,7 +1864,7 @@ bool CheckUninitVar::isMemberVariableAssignment(const Token *tok, const std::str
return false;
}
else if (Token::simpleMatch(ftok ? ftok->previous() : nullptr, "= * ("))
else if (ftok && Token::simpleMatch(ftok->previous(), "= * ("))
return false;
}
return true;