From 3832c466d7fdfce3cb3e1131d64f776a06bb7d00 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 4 Aug 2010 15:32:46 +0200 Subject: [PATCH] Fix: when setting crypt key seed was not updated when the swap file wasn't created yet. --- src/memline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/memline.c b/src/memline.c index ce1592637..16b3b3561 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 -- 2.50.1