]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.0171: Coverity warning for using uninitialized buffer v8.2.0171
authorBram Moolenaar <Bram@vim.org>
Tue, 28 Jan 2020 22:09:23 +0000 (23:09 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 28 Jan 2020 22:09:23 +0000 (23:09 +0100)
Problem:    Coverity warning for using uninitialized buffer.
Solution:   Check the skip flag.

src/userfunc.c
src/version.c

index 1878eab396e66c5f381914f30a893450ad9fef48..474812c0655271edbec6ca92401d87ec36f8cd96 100644 (file)
@@ -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;
index c8b576d0d1d64c49a4b36a2d704c31e064712eff..f82670c9e561a8d8ef1a8c86f0f961576de730ac 100644 (file)
@@ -742,6 +742,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    171,
 /**/
     170,
 /**/