From 9a5e5a3e33bb86ba5209278e83ec60790f80d15c Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 28 Jan 2020 23:09:23 +0100 Subject: patch 8.2.0171: Coverity warning for using uninitialized buffer Problem: Coverity warning for using uninitialized buffer. Solution: Check the skip flag. --- src/userfunc.c | 2 +- src/version.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/userfunc.c b/src/userfunc.c index 1878eab39..474812c06 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 c8b576d0d..f82670c9e 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, /**/ -- cgit v1.2.1