diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-04-15 22:22:57 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-04-15 22:22:57 +0200 |
commit | b70a473e24e36fd14361ece54da37e3ca7155fdd (patch) | |
tree | 92704fa8f870a8580bee901edcdaa3013feed7bd /src/ex_getln.c | |
parent | 3bb28557e192b9433dc286f89300f2557b46e821 (diff) | |
download | vim-git-b70a473e24e36fd14361ece54da37e3ca7155fdd.tar.gz |
updated for version 7.3.905v7.3.905
Problem: Crash when writing viminfo. (Ron Aaron)
Solution: Prevent freed history info to be used.
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index a7a1409b0..740cca204 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -6264,6 +6264,7 @@ write_viminfo_history(fp) vim_free(viminfo_history[type][i]); vim_free(viminfo_history[type]); viminfo_history[type] = NULL; + viminfo_hisidx[type] = 0; } } #endif /* FEAT_VIMINFO */ |