shithub: mc

Download patch

ref: 89e3217a0a604f94c68b9993a72166f6aede0b47
parent: 7ff626d1c51afb52e48183e39d6086103ea1ea2f
author: Ori Bernstein <[email protected]>
date: Wed Jan 23 09:56:05 EST 2013

Add loaded decls to decl list.

    This fixes a segfault building libstd.

--- a/parse/pickle.c
+++ b/parse/pickle.c
@@ -512,6 +512,7 @@
 
             /* init */
             n->decl.init = unpickle(fd);
+            lappend(&decls, &ndecls, n);
             break;
         case Nfunc:
             n->func.type = rdtype(fd);