Skip to content

Commit 2588b5a

Browse files
committed
patch 7.4.1498
Problem: Error for locked item when using json_decode(). (Shougo) Solution: Initialize v_lock.
1 parent 0ecbe33 commit 2588b5a

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/json.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,7 @@ json_decode_object(js_read_T *reader, typval_T *res, int options)
506506
return FAIL;
507507
}
508508
di->di_tv = item;
509+
di->di_tv.v_lock = 0;
509510
if (dict_add(res->vval.v_dict, di) == FAIL)
510511
{
511512
dictitem_free(di);

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,8 @@ static char *(features[]) =
743743

744744
static int included_patches[] =
745745
{ /* Add new patch number below this line */
746+
/**/
747+
1498,
746748
/**/
747749
1497,
748750
/**/

0 commit comments

Comments
 (0)