summaryrefslogtreecommitdiff
path: root/mi
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-03-07 22:13:35 -0800
committerOri Bernstein <ori@eigenstate.org>2016-03-07 22:14:12 -0800
commitfef2165a21c9ed3c7c1e15ee82e5641b3d43c58f (patch)
treeae295533c3725dd4ef44e8e386800b2712d548e2 /mi
parent7232ece6a83f28173aff8be16b201151ad7d3751 (diff)
downloadmc-fef2165a21c9ed3c7c1e15ee82e5641b3d43c58f.tar.gz
Fix missing null terminator.
Fixes #108
Diffstat (limited to 'mi')
-rw-r--r--mi/flatten.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mi/flatten.c b/mi/flatten.c
index 28800e1..0df229e 100644
--- a/mi/flatten.c
+++ b/mi/flatten.c
@@ -705,7 +705,7 @@ static void flattenidxiter(Flattenctx *s, Node *n)
done->expr.type = mktype(n->loc, Tybool);
cjmp(s, done, lmatch, lend);
flatten(s, lmatch);
- val = mkexpr(n->loc, Oidx, seq, idx);
+ val = mkexpr(n->loc, Oidx, seq, idx, NULL);
val->expr.type = tybase(exprtype(seq))->sub[0];
/* pattern match */