diff src/userfunc.c @ 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 e7b4fff348dd
children a8d2d3c8f0b3
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;