aboutsummaryrefslogtreecommitdiff
path: root/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'init.c')
-rw-r--r--init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.c b/init.c
index 7068065..bb8ad82 100644
--- a/init.c
+++ b/init.c
@@ -211,7 +211,7 @@ parseinit(struct scope *s, struct type *t)
p.cur = NULL;
p.sub = p.obj;
p.sub->offset = 0;
- p.sub->type = t;
+ p.sub->type = typeunqual(t, NULL);
for (;;) {
if (p.cur) {
if (tok.kind == TLBRACK || tok.kind == TPERIOD)