diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-08-04 15:32:46 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-08-04 15:32:46 +0200 |
commit | 3832c466d7fdfce3cb3e1131d64f776a06bb7d00 (patch) | |
tree | 858423e5eb28ae884f3864e971ca059afcc2abd2 /src/memline.c | |
parent | f9bb734367d9a706cc53cc30bbcb3544bfb16cc5 (diff) |
Fix: when setting crypt key seed was not updated when the swap file wasn't
created yet.
Diffstat (limited to 'src/memline.c')
-rw-r--r-- | src/memline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/memline.c b/src/memline.c index ce1592637b..16b3b3561b 100644 --- a/src/memline.c +++ b/src/memline.c @@ -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 |