diff options
author | Clint Adams <clint@users.sourceforge.net> | 2007-09-13 10:14:56 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2007-09-13 10:14:56 +0000 |
commit | 8deb3e6c43a30e6669aa55fefd9c29f81507ca50 (patch) | |
tree | bb93f39a3ad9b4ae526f93032659f02474b68751 /Src/Zle/zle_hist.c | |
parent | f5a6b2a8c93a4f30e32f59280d91c7495b6879ef (diff) | |
download | zsh-8deb3e6c43a30e6669aa55fefd9c29f81507ca50.tar.gz zsh-8deb3e6c43a30e6669aa55fefd9c29f81507ca50.tar.xz zsh-8deb3e6c43a30e6669aa55fefd9c29f81507ca50.zip |
2381x: set vipenultsrchstr to NULL after freeing it to avoid vi-mode history search segfaults.
Diffstat (limited to 'Src/Zle/zle_hist.c')
-rw-r--r-- | Src/Zle/zle_hist.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Src/Zle/zle_hist.c b/Src/Zle/zle_hist.c index bb740d75c..38f32b97c 100644 --- a/Src/Zle/zle_hist.c +++ b/Src/Zle/zle_hist.c @@ -1240,6 +1240,7 @@ getvisrchstr(void) if (vipenultsrchstr) { zsfree(vipenultsrchstr); + vipenultsrchstr = NULL; } if (visrchstr) { |