Merge pull request #423 from Dmitry-Me/deconvoluteTernaryPlusCall

Simplify null pointer handling
This commit is contained in:
Daniel Marjamäki 2014-09-09 11:33:15 +02:00
commit a5b863796c
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;