shithub: mc

Download patch

ref: 96ba638d526ff2e3901b13e44529545579da9d06
parent: 6c861b5f3c9f618df0940e9a8b72e4ff3cccd3b1
author: Ori Bernstein <[email protected]>
date: Mon May 14 10:47:09 EDT 2012

Add missing break.

    We fell through with var lvals.

--- a/8/reduce.c
+++ b/8/reduce.c
@@ -263,11 +263,8 @@
     if (!one)
         one = mkexpr(-1, Olit, mkint(-1, 1), NULL);
     switch (exprop(n)) {
-        case Ovar:
-            r = n;
-        case Omemb:
-            r = membaddr(s, n);
-            break;
+        case Ovar: r = n; break;
+        case Omemb: r = membaddr(s, n); break;
         default:
             die("%s cannot be an lval", opstr(exprop(n)));
             break;