about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-08-01 21:52:35 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-08-01 21:52:35 +0000
commit3c75ea5de5d14638e706264e424829a03294fced (patch)
treed5a4a8483282e956ab7f4421e0eb8ab5698f5912 /Src
parentd86089ee6eeac885477803fda574f6b3eaf81f54 (diff)
downloadzsh-3c75ea5de5d14638e706264e424829a03294fced.tar.gz
zsh-3c75ea5de5d14638e706264e424829a03294fced.tar.xz
zsh-3c75ea5de5d14638e706264e424829a03294fced.zip
23736: status for file save wasn't initialised
Diffstat (limited to 'Src')
-rw-r--r--Src/hist.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Src/hist.c b/Src/hist.c
index 6ddfaf506..d4f3fc454 100644
--- a/Src/hist.c
+++ b/Src/hist.c
@@ -2225,6 +2225,7 @@ savehistfile(char *fn, int err, int writeflags)
 	}
     }
     if (out) {
+	ret = 0;
 	for (; he && he->histnum <= xcurhist; he = down_histent(he)) {
 	    if ((writeflags & HFILE_SKIPDUPS && he->node.flags & HIST_DUP)
 	     || (writeflags & HFILE_SKIPFOREIGN && he->node.flags & HIST_FOREIGN)