Mercurial > vim
changeset 2408:9e2e63af1641 vim73
Better fix for memory access in recovery. (Dominique Pelle)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sun, 25 Jul 2010 15:11:11 +0200 |
parents | 6bc102a4bff8 |
children | 0ca06a92adfb |
files | src/memline.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/memline.c +++ b/src/memline.c @@ -1170,6 +1170,10 @@ ml_recover() buf->b_ml.ml_line_lnum = 0; /* no cached line */ buf->b_ml.ml_locked = NULL; /* no locked block */ buf->b_ml.ml_flags = 0; +#ifdef FEAT_CRYPT + buf->b_p_key = empty_option; + buf->b_p_cm = empty_option; +#endif /* * open the memfile from the old swap file @@ -1187,8 +1191,6 @@ ml_recover() buf->b_ml.ml_mfp = mfp; #ifdef FEAT_CRYPT mfp->mf_buffer = buf; - buf->b_p_key = empty_option; - buf->b_p_cm = empty_option; #endif /*