CheckUninitVar: Fixed GCC warning

This commit is contained in:
Daniel Marjamäki 2013-07-04 07:58:30 +02:00
parent c1dac347b9
commit ef83525cd0
1 changed files with 1 additions and 1 deletions

View File

@ -1528,7 +1528,7 @@ void CheckUninitVar::checkRhs(const Token *tok, const Variable &var, const std::
{ {
bool rhs = false; bool rhs = false;
unsigned int indent = 0; unsigned int indent = 0;
while (tok = tok->next()) { while (NULL != (tok = tok->next())) {
if (tok->str() == "=") if (tok->str() == "=")
rhs = true; rhs = true;
if (rhs && tok->varId() == var.varId()) { if (rhs && tok->varId() == var.varId()) {