mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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)
This commit is contained in:
@@ -63,6 +63,7 @@ blob_copy(typval_T *from, typval_T *to)
|
||||
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)
|
||||
|
Reference in New Issue
Block a user