summaryrefslogtreecommitdiff
path: root/src/json.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-02-02 19:43:57 +0100
committerBram Moolenaar <Bram@vim.org>2016-02-02 19:43:57 +0100
commitfbf9c6b6c3bdb1c2eb42ea8c227e8ee021a7a8f2 (patch)
tree8e231a51b279bc66191294615665cab5056127f5 /src/json.c
parent8d8c509ac8dea59ad07712971d74afae08521f79 (diff)
downloadvim-git-fbf9c6b6c3bdb1c2eb42ea8c227e8ee021a7a8f2.tar.gz
patch 7.4.1243v7.4.1243
Problem: Compiler warning for uninitialized variable. Solution: Initialize it. (Elias Diem)
Diffstat (limited to 'src/json.c')
-rw-r--r--src/json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/json.c b/src/json.c
index 72b065f9a..f97d28312 100644
--- a/src/json.c
+++ b/src/json.c
@@ -339,7 +339,7 @@ json_decode_object(js_read_T *reader, typval_T *res)
typval_T item;
dictitem_T *di;
char_u buf[NUMBUFLEN];
- char_u *key;
+ char_u *key = NULL;
int ret;
if (res != NULL && rettv_dict_alloc(res) == FAIL)