From: Bram Moolenaar Date: Tue, 28 Jan 2020 22:09:23 +0000 (+0100) Subject: patch 8.2.0171: Coverity warning for using uninitialized buffer X-Git-Tag: v8.2.0171 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a5e5a3e33bb86ba5209278e83ec60790f80d15c;p=thirdparty%2Fvim.git patch 8.2.0171: Coverity warning for using uninitialized buffer Problem: Coverity warning for using uninitialized buffer. Solution: Check the skip flag. --- diff --git a/src/userfunc.c b/src/userfunc.c index 1878eab396..474812c065 100644 --- a/src/userfunc.c +++ b/src/userfunc.c @@ -2188,7 +2188,7 @@ trans_function_name( name = alloc(len + lead + extra + 1); if (name != NULL) { - if (lead > 0 || vim9script) + if (!skip && (lead > 0 || vim9script)) { name[0] = K_SPECIAL; name[1] = KS_EXTRA; diff --git a/src/version.c b/src/version.c index c8b576d0d1..f82670c9e5 100644 --- a/src/version.c +++ b/src/version.c @@ -742,6 +742,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 171, /**/ 170, /**/