0
0
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:
Bram Moolenaar
2016-03-05 23:23:02 +01:00
parent 0ecbe33718
commit 2588b5a43f
2 changed files with 3 additions and 0 deletions

View File

@@ -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);