From e7210e10b07080a15f801f1e87033cc145fcc916 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 23 Apr 2007 16:44:24 +0000 Subject: 23312: fix versioning and initialisation of word code headers --- Src/parse.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Src/parse.c') diff --git a/Src/parse.c b/Src/parse.c index afaa0d944..dfba6d6c2 100644 --- a/Src/parse.c +++ b/Src/parse.c @@ -2693,6 +2693,8 @@ write_dump(int dfd, LinkList progs, int map, int hlen, int tlen) if (map == 1) map = (tlen >= FD_MINMAP); + memset(pre, 0, sizeof(wordcode) * FD_PRELEN) + for (ohlen = hlen; ; hlen = ohlen) { fdmagic(pre) = (other ? FD_OMAGIC : FD_MAGIC); fdsetflags(pre, ((map ? FDF_MAP : 0) | other)); -- cgit 1.4.1