commit | fbf9c6b6c3bdb1c2eb42ea8c227e8ee021a7a8f2 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Feb 02 19:43:57 2016 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Feb 02 19:43:57 2016 +0100 |
tree | 8e231a51b279bc66191294615665cab5056127f5 | |
parent | 8d8c509ac8dea59ad07712971d74afae08521f79 [diff] [blame] |
patch 7.4.1243 Problem: Compiler warning for uninitialized variable. Solution: Initialize it. (Elias Diem)
diff --git a/src/json.c b/src/json.c index 72b065f..f97d283 100644 --- a/src/json.c +++ b/src/json.c
@@ -339,7 +339,7 @@ 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)