# HG changeset patch # User Bram Moolenaar # Date 1580249704 -3600 # Node ID 77cd940838500f7f8ca9a5464b800726bcd9bfcd # Parent 743c2d8e09bd8b00475875d7b38836536ef731ee patch 8.2.0171: Coverity warning for using uninitialized buffer Commit: https://github.com/vim/vim/commit/9a5e5a3e33bb86ba5209278e83ec60790f80d15c Author: Bram Moolenaar 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. diff --git a/src/userfunc.c b/src/userfunc.c --- 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; diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -743,6 +743,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 171, +/**/ 170, /**/ 169,