From fbf9c6b6c3bdb1c2eb42ea8c227e8ee021a7a8f2 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 2 Feb 2016 19:43:57 +0100 Subject: patch 7.4.1243 Problem: Compiler warning for uninitialized variable. Solution: Initialize it. (Elias Diem) --- src/json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/json.c') 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) -- cgit v1.2.1