about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2002-02-20 19:25:14 +0000
committerWayne Davison <wayned@users.sourceforge.net>2002-02-20 19:25:14 +0000
commitcfcf7bda8d6bd15b9c0274a8ee01f0b517484635 (patch)
treeaa749eec41e06c35d4d0153b1dbc43fb28600d57
parent6febc8fe67ab920819dd0b2bbdddb4f84d991dc5 (diff)
downloadzsh-cfcf7bda8d6bd15b9c0274a8ee01f0b517484635.tar.gz
zsh-cfcf7bda8d6bd15b9c0274a8ee01f0b517484635.tar.xz
zsh-cfcf7bda8d6bd15b9c0274a8ee01f0b517484635.zip
Yet another fix for prepnexthistent().
-rw-r--r--Src/hist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/hist.c b/Src/hist.c
index 4f78e7309..5c8ac8d95 100644
--- a/Src/hist.c
+++ b/Src/hist.c
@@ -971,7 +971,8 @@ prepnexthistent(void)
     }
     else {
 	putoldhistentryontop(0);
-	freehistdata(he = hist_ring, 0);
+	freehistdata(hist_ring, 0);
+	he = hist_ring;
     }
     he->histnum = ++curhist;
     if (curline_in_ring)