CI; Fixed self check
This commit is contained in:
parent
de2c8217e5
commit
30ef6db24c
|
@ -1044,7 +1044,7 @@ const Token* CheckUninitVar::isVariableUsage(const Token *vartok, bool pointer,
|
||||||
// todo compare deref with array dimensions
|
// todo compare deref with array dimensions
|
||||||
derefValue = nullptr;
|
derefValue = nullptr;
|
||||||
}
|
}
|
||||||
} else if (alloc == NO_ALLOC && vartok->astParent() && vartok->astParent()->isUnaryOp("&")) {
|
} else if (vartok->astParent() && vartok->astParent()->isUnaryOp("&")) {
|
||||||
const Token *child = vartok->astParent();
|
const Token *child = vartok->astParent();
|
||||||
const Token *parent = child->astParent();
|
const Token *parent = child->astParent();
|
||||||
while (parent && (parent->isCast() || parent->str() == "+")) {
|
while (parent && (parent->isCast() || parent->str() == "+")) {
|
||||||
|
|
Loading…
Reference in New Issue