CI; Fixed self check

This commit is contained in:
Daniel Marjamäki 2021-05-16 23:39:10 +02:00
parent de2c8217e5
commit 30ef6db24c
1 changed files with 1 additions and 1 deletions

View File

@ -1044,7 +1044,7 @@ const Token* CheckUninitVar::isVariableUsage(const Token *vartok, bool pointer,
// todo compare deref with array dimensions
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 *parent = child->astParent();
while (parent && (parent->isCast() || parent->str() == "+")) {