changeset 19225:77cd94083850 v8.2.0171

patch 8.2.0171: Coverity warning for using uninitialized buffer Commit: https://github.com/vim/vim/commit/9a5e5a3e33bb86ba5209278e83ec60790f80d15c Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 28 23:09:23 2020 +0100 patch 8.2.0171: Coverity warning for using uninitialized buffer Problem: Coverity warning for using uninitialized buffer. Solution: Check the skip flag.
author Bram Moolenaar <Bram@vim.org>
date Tue, 28 Jan 2020 23:15:04 +0100
parents 743c2d8e09bd
children 17838f264b53
files src/userfunc.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- a/src/version.c
+++ b/src/version.c
@@ -743,6 +743,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    171,
+/**/
     170,
 /**/
     169,