Uninitialized variables: Fixed false positives when taking address. Ticket: #3369

This commit is contained in:
Daniel Marjamäki 2011-12-15 19:38:06 +01:00
parent fd78816181
commit 10228881c7
1 changed files with 1 additions and 1 deletions

View File

@ -1161,7 +1161,7 @@ bool CheckUninitVar::isVariableUsage(const Token *vartok) const
return false;
}
if (vartok->previous()->str() != "&" || !Token::Match(vartok->tokAt(-2), "[(,]")) {
if (vartok->previous()->str() != "&" || !Token::Match(vartok->tokAt(-2), "[(,=]")) {
return true;
}
}