From dc633cf82758f67f656cda7fa8ccc30414ee53f8 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 23 Apr 2016 14:33:19 +0200 Subject: patch 7.4.1780 Problem: Warnings reported by cppcheck. Solution: Fix the warnings. (Dominique Pelle) --- 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 b4ebe7414..aa168ec11 100644 --- a/src/json.c +++ b/src/json.c @@ -539,7 +539,6 @@ json_decode_string(js_read_T *reader, typval_T *res) char_u *p; int c; long nr; - char_u buf[NUMBUFLEN]; if (res != NULL) ga_init2(&ga, 1, 200); @@ -617,6 +616,7 @@ json_decode_string(js_read_T *reader, typval_T *res) if (res != NULL) { #ifdef FEAT_MBYTE + char_u buf[NUMBUFLEN]; buf[utf_char2bytes((int)nr, buf)] = NUL; ga_concat(&ga, buf); #else -- cgit v1.2.1