1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-06-11 01:36:03 +02:00

23736: status for file save wasn't initialised

This commit is contained in:
Peter Stephenson 2007-08-01 21:52:35 +00:00
parent d86089ee6e
commit 3c75ea5de5
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2007-08-01 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 23736: Src/hist.c: status for file save wasnʼt
initialised.
* unposted: **/.distfiles: update files for distribution.
2007-07-31 Peter Stephenson <pws@csr.com>

View File

@ -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)