Mercurial > vim
diff src/fileio.c @ 6130:86fb698a38d5 v7.4.403
updated for version 7.4.403
Problem: Valgrind reports errors when running test 72. (Dominique Pelle)
Solution: Reset the local 'cryptmethod' option before storing the seed.
Set the seed in the memfile even when there is no block0 yet.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 13 Aug 2014 21:58:28 +0200 |
parents | 18ac55444b37 |
children | 67edf731a240 |
line wrap: on
line diff
--- a/src/fileio.c +++ b/src/fileio.c @@ -2944,6 +2944,7 @@ check_for_cryptkey(cryptkey, ptr, sizep, * Avoids accidentally overwriting the file with garbage. */ curbuf->b_p_ro = TRUE; + /* Set the cryptmethod local to the buffer. */ crypt_set_cm_option(curbuf, method); if (cryptkey == NULL && !*did_ask) {