Bug hunting; Avoid false positives

This commit is contained in:
Daniel Marjamäki 2020-07-14 11:15:26 +02:00
parent fe324aea49
commit 176826a1f5
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ static void uninit(const Token *tok, const ExprEngine::Value &value, ExprEngine:
return;
// Object allocated on the stack
if (tok->valueType() && tok->valueType()->pointer == 0 && Token::Match(tok, "%var% ."))
if (Token::Match(tok, "%var% .") && tok->next()->originalName() != "->")
return;
// Containers are not uninitialized