diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-03-25 14:39:51 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-03-25 14:39:51 +0000 |
commit | 03a297c63f1512ba9783104a343dc7e2024e0bb0 (patch) | |
tree | 3687257a3dc9183c2b42f7d020750aaca5699a43 | |
parent | 43216611a5accd32a53fe77d4552a36f6ed30c74 (diff) | |
download | vim-git-03a297c63f1512ba9783104a343dc7e2024e0bb0.tar.gz |
patch 8.2.4623: Coverity warns for using uninitialized fieldv8.2.4623
Problem: Coverity warns for using uninitialized field.
Solution: Initialize he field to zero.
-rw-r--r-- | src/ex_docmd.c | 1 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 65f4221f0..5e7cb8364 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -3906,6 +3906,7 @@ cmd_exists(char_u *name) // For ":2match" and ":3match" we need to skip the number. ea.cmd = (*name == '2' || *name == '3') ? name + 1 : name; ea.cmdidx = (cmdidx_T)0; + ea.flags = 0; p = find_ex_command(&ea, &full, NULL, NULL); if (p == NULL) return 3; diff --git a/src/version.c b/src/version.c index d6edc46e8..c7164f489 100644 --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4623, +/**/ 4622, /**/ 4621, |