diff options
author | Ori Bernstein <ori@eigenstate.org> | 2016-02-22 21:18:48 -0800 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2016-02-22 21:18:48 -0800 |
commit | 08cc0fb7156ba71423b15577b06fceb868ab2329 (patch) | |
tree | 17199f173053741a83487db50973151a99dc1469 /mi | |
parent | d5fe5b7cc7d8a629a190c1834f76b91a6bdb7e0e (diff) | |
download | mc-08cc0fb7156ba71423b15577b06fceb868ab2329.tar.gz |
Fix uniniitalized variable use.
Diffstat (limited to 'mi')
-rw-r--r-- | mi/flatten.c | 3 |
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; } |