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);
|
||||
if (name != NULL)
|
||||
{
|
||||
if (lead > 0 || vim9script)
|
||||
if (!skip && (lead > 0 || vim9script))
|
||||
{
|
||||
name[0] = K_SPECIAL;
|
||||
name[1] = KS_EXTRA;
|
||||
|
Reference in New Issue
Block a user