Skip to content

Commit c62e7d6

Browse files
Update fwdanalysis.cpp
1 parent e6476f2 commit c62e7d6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/fwdanalysis.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,8 @@ FwdAnalysis::Result FwdAnalysis::checkRecursive(const Token *expr, const Token *
413413
static bool isSimpleIndexExpression(const Token* tok)
414414
{
415415
const Token* idx = tok->astOperand2();
416+
if (!idx)
417+
return false;
416418
if (idx->isIncDecOp())
417419
idx = idx->astOperand1();
418420
return idx->variable() && idx->variable()->scope() == tok->scope();

0 commit comments

Comments
 (0)