diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-01-28 23:09:23 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-01-28 23:09:23 +0100 |
commit | 9a5e5a3e33bb86ba5209278e83ec60790f80d15c (patch) | |
tree | 896a595bdac9f4fd644de76e781461b4d94cafcb | |
parent | a6d536829a2c3151f3d0faa0ecdc7b8230fb11ec (diff) | |
download | vim-git-9a5e5a3e33bb86ba5209278e83ec60790f80d15c.tar.gz |
patch 8.2.0171: Coverity warning for using uninitialized bufferv8.2.0171
Problem: Coverity warning for using uninitialized buffer.
Solution: Check the skip flag.
-rw-r--r-- | src/userfunc.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/userfunc.c b/src/userfunc.c index 1878eab39..474812c06 100644 --- 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 index c8b576d0d..f82670c9e 100644 --- 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, |