Bug hunting; Fix itc.py test

This commit is contained in:
Daniel Marjamäki 2020-07-17 13:20:31 +02:00
parent 2713474f56
commit 58638d7757
1 changed files with 3 additions and 3 deletions

View File

@ -295,10 +295,10 @@ static void uninit(const Token *tok, const ExprEngine::Value &value, ExprEngine:
// Are there unconditional assignment?
if (var && Token::Match(var->nameToken(), "%varid% ;| %varid%| =", tok->varId()))
return;
}
if (tok->variable() && isVariableAssigned(tok->variable(), tok))
return;
}
// Uninitialized function argument
bool inconclusive = false;