diff options
author | Bram Moolenaar <Bram@vim.org> | 2014-08-13 21:58:28 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2014-08-13 21:58:28 +0200 |
commit | 2be795084f053928879d758443e199ef147cc07e (patch) | |
tree | f463c710036022d066b5d852bcd1dac1140d2dab /src/fileio.c | |
parent | 5a669b94814a5ca1ff69f76f18c75a90f4404ca6 (diff) | |
download | vim-2be795084f053928879d758443e199ef147cc07e.zip |
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.
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c index a028b22a5..17490ac21 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) { |