summaryrefslogtreecommitdiff
path: root/mi
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-02-22 21:18:48 -0800
committerOri Bernstein <ori@eigenstate.org>2016-02-22 21:18:48 -0800
commit08cc0fb7156ba71423b15577b06fceb868ab2329 (patch)
tree17199f173053741a83487db50973151a99dc1469 /mi
parentd5fe5b7cc7d8a629a190c1834f76b91a6bdb7e0e (diff)
downloadmc-08cc0fb7156ba71423b15577b06fceb868ab2329.tar.gz
Fix uniniitalized variable use.
Diffstat (limited to 'mi')
-rw-r--r--mi/flatten.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mi/flatten.c b/mi/flatten.c
index cc0a6a8..ace387f 100644
--- a/mi/flatten.c
+++ b/mi/flatten.c
@@ -158,8 +158,9 @@ static Node *seqlen(Flattenctx *s, Node *n, Type *ty)
} else if (exprtype(n)->type == Tyslice) {
r = mkexpr(n->loc, Osllen, rval(s, n), NULL);
r->expr.type = ty;
+ } else {
+ die("invalid seq type for len");
}
- assert(r != NULL);
return r;
}