]> granicus.if.org Git - vim/commitdiff
Fix: when setting crypt key seed was not updated when the swap file wasn't
authorBram Moolenaar <Bram@vim.org>
Wed, 4 Aug 2010 13:32:46 +0000 (15:32 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 4 Aug 2010 13:32:46 +0000 (15:32 +0200)
created yet.

src/memline.c

index ce1592637b3f6e7ddf80459cd178beff0ad92404..16b3b3561b170c4031e838b01bb67f23ce418102 100644 (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