shithub: mc

Download patch

ref: 45190b61951be28771b78baaef79aa196476c2d3
parent: e8e1f8e7721391e03950b24ef64152ad954da214
author: Ori Bernstein <[email protected]>
date: Sat May 12 14:39:35 EDT 2012

Give a default value that doesn't clash.

    TEndblk wants to return a Tok, but we need it to
    return an empty block.

--- a/parse/gram.y
+++ b/parse/gram.y
@@ -523,7 +523,7 @@
         ;
 
 block   : blockbody TEndblk
-        | TEndblk
+        | TEndblk {$$ = NULL;}
         ;
 
 blockbody