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:
@@ -2188,7 +2188,7 @@ trans_function_name(
|
|||||||
name = alloc(len + lead + extra + 1);
|
name = alloc(len + lead + extra + 1);
|
||||||
if (name != NULL)
|
if (name != NULL)
|
||||||
{
|
{
|
||||||
if (lead > 0 || vim9script)
|
if (!skip && (lead > 0 || vim9script))
|
||||||
{
|
{
|
||||||
name[0] = K_SPECIAL;
|
name[0] = K_SPECIAL;
|
||||||
name[1] = KS_EXTRA;
|
name[1] = KS_EXTRA;
|
||||||
|
@@ -742,6 +742,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
171,
|
||||||
/**/
|
/**/
|
||||||
170,
|
170,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user