diff src/json.c @ 7893:df2b8af14072 v7.4.1243

commit https://github.com/vim/vim/commit/fbf9c6b6c3bdb1c2eb42ea8c227e8ee021a7a8f2 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 2 19:43:57 2016 +0100 patch 7.4.1243 Problem: Compiler warning for uninitialized variable. Solution: Initialize it. (Elias Diem)
author Christian Brabandt <cb@256bit.org>
date Tue, 02 Feb 2016 19:45:05 +0100
parents 98a96e0ca73b
children 2679e636e862
line wrap: on
line diff
--- a/src/json.c
+++ b/src/json.c
@@ -339,7 +339,7 @@ json_decode_object(js_read_T *reader, ty
     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)