Skip to content

Commit

Permalink
bugzilla 3724 bug in Expression::arraySyntaxCopy (null pointer derefe…
Browse files Browse the repository at this point in the history
…rence on struct->union->struct
  • Loading branch information
Walter Bright committed Jan 23, 2010
1 parent ab727a4 commit 375bb16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/expression.c
Expand Up @@ -1475,7 +1475,8 @@ Expressions *Expression::arraySyntaxCopy(Expressions *exps)
for (int i = 0; i < a->dim; i++)
{ Expression *e = (Expression *)exps->data[i];

e = e->syntaxCopy();
if (e)
e = e->syntaxCopy();
a->data[i] = e;
}
}
Expand Down

0 comments on commit 375bb16

Please sign in to comment.