0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.2.0171: Coverity warning for using uninitialized buffer

Problem:    Coverity warning for using uninitialized buffer.
Solution:   Check the skip flag.
This commit is contained in:
Bram Moolenaar
2020-01-28 23:09:23 +01:00
parent a6d536829a
commit 9a5e5a3e33
2 changed files with 3 additions and 1 deletions

View 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;

View File

@@ -742,6 +742,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
171,
/**/
170,
/**/