0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

Fix: when setting crypt key seed was not updated when the swap file wasn't

created yet.
This commit is contained in:
Bram Moolenaar
2010-08-04 15:32:46 +02:00
parent f9bb734367
commit 3832c466d7

View File

@@ -478,7 +478,7 @@ ml_set_crypt_key(buf, old_key, old_cm)
blocknr_T bnum;
int top;
if (mfp == NULL || mfp->mf_fd < 0)
if (mfp == NULL)
return; /* no memfile yet, nothing to do */
/* Set the key, method and seed to be used for reading, these must be the