shithub: mc

Download patch

ref: 08cc0fb7156ba71423b15577b06fceb868ab2329
parent: d5fe5b7cc7d8a629a190c1834f76b91a6bdb7e0e
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Feb 22 16:18:48 EST 2016

Fix uniniitalized variable use.

--- a/mi/flatten.c
+++ b/mi/flatten.c
@@ -158,8 +158,9 @@
 	} 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;
 }