Uninitialized variables: Fixed false positives when taking address. Ticket: #3369
This commit is contained in:
parent
fd78816181
commit
10228881c7
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue