aboutsummaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 3e83085..d6c70b1 100644
--- a/eval.c
+++ b/eval.c
@@ -118,7 +118,7 @@ eval(struct expr *expr)
case EXPRCOMPOUND:
if (expr->u.compound.storage != SDSTATIC)
break;
- d = mkdecl(DECLOBJECT, t, expr->qual, LINKNONE);
+ d = mkdecl(NULL, DECLOBJECT, t, expr->qual, LINKNONE);
d->value = mkglobal(NULL, true);
emitdata(d, expr->u.compound.init);
expr->kind = EXPRIDENT;