mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 7.4.1498
Problem: Error for locked item when using json_decode(). (Shougo) Solution: Initialize v_lock.
This commit is contained in:
@@ -506,6 +506,7 @@ json_decode_object(js_read_T *reader, typval_T *res, int options)
|
||||
return FAIL;
|
||||
}
|
||||
di->di_tv = item;
|
||||
di->di_tv.v_lock = 0;
|
||||
if (dict_add(res->vval.v_dict, di) == FAIL)
|
||||
{
|
||||
dictitem_free(di);
|
||||
|
Reference in New Issue
Block a user