summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <orib@google.com>2013-01-23 14:56:05 -0500
committerOri Bernstein <orib@google.com>2013-01-23 14:56:05 -0500
commit89e3217a0a604f94c68b9993a72166f6aede0b47 (patch)
tree0f26a1991abee0465b9515b4e95797710ee1fb93
parent7ff626d1c51afb52e48183e39d6086103ea1ea2f (diff)
downloadmc-89e3217a0a604f94c68b9993a72166f6aede0b47.tar.gz
Add loaded decls to decl list.
This fixes a segfault building libstd.
-rw-r--r--parse/pickle.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse/pickle.c b/parse/pickle.c
index 9cbedf0..8dcf769 100644
--- a/parse/pickle.c
+++ b/parse/pickle.c
@@ -512,6 +512,7 @@ Node *unpickle(FILE *fd)
/* init */
n->decl.init = unpickle(fd);
+ lappend(&decls, &ndecls, n);
break;
case Nfunc:
n->func.type = rdtype(fd);