Uninitialized variables: Fixed false positive for x 'a[x=1]'. Ticket: #3369
This commit is contained in:
parent
e723ef0569
commit
1f329d7b41
|
@ -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 true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue