0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 7.4.1780

Problem:    Warnings reported by cppcheck.
Solution:   Fix the warnings. (Dominique Pelle)
This commit is contained in:
Bram Moolenaar
2016-04-23 14:33:19 +02:00
parent 73dfe917ba
commit dc633cf827
6 changed files with 16 additions and 12 deletions

View File

@@ -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