Uninitialized variables: Fixed false positive for x 'a[x=1]'. Ticket: #3369

This commit is contained in:
Daniel Marjamäki 2011-12-16 18:12:47 +01:00
parent e723ef0569
commit 1f329d7b41
1 changed files with 1 additions and 1 deletions

View File

@ -1176,7 +1176,7 @@ bool CheckUninitVar::isVariableUsage(const Token *vartok) const
}
}
if (vartok->strAt(-1) == "[" || vartok->strAt(1) == "]")
if (vartok->strAt(1) == "]")
return true;
return false;