commit | b7b9efbccfe17ee3f7b1bb877b7745d5bfbf0804 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Fri Jul 12 20:17:03 2019 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Fri Jul 12 20:17:03 2019 +0200 |
tree | 4db93ec0c2518ed5879e9253cd4b13d7eed1970c | |
parent | 0231f8312b11a259d9cb550f3318895f6b4d76be [diff] [blame] |
patch 8.1.1671: copying a blob may result in it being locked Problem: Copying a blob may result in it being locked. Solution: Reset v_lock. (Ken Takata, closes #4648)
diff --git a/src/blob.c b/src/blob.c index cbd26b9..fb40a57 100644 --- a/src/blob.c +++ b/src/blob.c
@@ -63,6 +63,7 @@ int ret = OK; to->v_type = VAR_BLOB; + to->v_lock = 0; if (from->vval.v_blob == NULL) to->vval.v_blob = NULL; else if (rettv_blob_alloc(to) == FAIL)