forked from aniani/vim
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.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user