summaryrefslogtreecommitdiffstats
path: root/src/fileio.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-08-13 21:58:28 +0200
committerBram Moolenaar <Bram@vim.org>2014-08-13 21:58:28 +0200
commit2be795084f053928879d758443e199ef147cc07e (patch)
treef463c710036022d066b5d852bcd1dac1140d2dab /src/fileio.c
parent5a669b94814a5ca1ff69f76f18c75a90f4404ca6 (diff)
updated for version 7.4.403v7.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.
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c
index a028b22a5c..17490ac21a 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2944,6 +2944,7 @@ check_for_cryptkey(cryptkey, ptr, sizep, filesizep, newfile, fname, did_ask)
* 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)
{