summaryrefslogtreecommitdiffstats
path: root/src/json.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-03-05 23:23:02 +0100
committerBram Moolenaar <Bram@vim.org>2016-03-05 23:23:02 +0100
commit2588b5a43f049ddf542991050260237051caad77 (patch)
treef0a0cfadaec5d1469e369439b1014d10c454bb6e /src/json.c
parent0ecbe33718b06a3771fd2c65b331c8c9504657d7 (diff)
patch 7.4.1498v7.4.1498
Problem: Error for locked item when using json_decode(). (Shougo) Solution: Initialize v_lock.
Diffstat (limited to 'src/json.c')
-rw-r--r--src/json.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/json.c b/src/json.c
index b41d45ee0f..34cf188a1d 100644
--- a/src/json.c
+++ b/src/json.c
@@ -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);