commit | 9a5e5a3e33bb86ba5209278e83ec60790f80d15c | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Jan 28 23:09:23 2020 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Jan 28 23:09:23 2020 +0100 |
tree | 896a595bdac9f4fd644de76e781461b4d94cafcb | |
parent | a6d536829a2c3151f3d0faa0ecdc7b8230fb11ec [diff] [blame] |
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 index 1878eab..474812c 100644 --- a/src/userfunc.c +++ b/src/userfunc.c
@@ -2188,7 +2188,7 @@ 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;