about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-04-23 16:44:24 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-04-23 16:44:24 +0000
commite7210e10b07080a15f801f1e87033cc145fcc916 (patch)
treea30b68d46063c8025825aa167ae13d9456ce3846 /Src
parent24477a7ff4e05f460b27866f8b16ca494e9ce9d5 (diff)
downloadzsh-e7210e10b07080a15f801f1e87033cc145fcc916.tar.gz
zsh-e7210e10b07080a15f801f1e87033cc145fcc916.tar.xz
zsh-e7210e10b07080a15f801f1e87033cc145fcc916.zip
23312: fix versioning and initialisation of word code headers
Diffstat (limited to 'Src')
-rw-r--r--Src/parse.c2
-rw-r--r--Src/zsh.mdd2
2 files changed, 3 insertions, 1 deletions
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));
diff --git a/Src/zsh.mdd b/Src/zsh.mdd
index 4d81a9e30..8aef628c5 100644
--- a/Src/zsh.mdd
+++ b/Src/zsh.mdd
@@ -31,7 +31,7 @@ sigcount.h: signames.c
 
 init.o: bltinmods.list zshpaths.h zshxmods.h
 
-init.o params.o: version.h
+init.o params.o parse.o: version.h
 
 version.h: $(sdir_top)/Config/version.mk
 	echo '#define ZSH_VERSION "'$(VERSION)'"' > $@