]> granicus.if.org Git - vim/commitdiff
patch 8.2.4623: Coverity warns for using uninitialized field v8.2.4623
authorBram Moolenaar <Bram@vim.org>
Fri, 25 Mar 2022 14:39:51 +0000 (14:39 +0000)
committerBram Moolenaar <Bram@vim.org>
Fri, 25 Mar 2022 14:39:51 +0000 (14:39 +0000)
Problem:    Coverity warns for using uninitialized field.
Solution:   Initialize he field to zero.

src/ex_docmd.c
src/version.c

index 65f4221f0d38eece20f5ff761bbf9c0e5ed8aeac..5e7cb83649b1ee4402a346af5f0861159c59f4c8 100644 (file)
@@ -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;
index d6edc46e89708fdde1fcecaa4e4f23c59e6281e0..c7164f4896ea2be5f4852dc4fee7335148c7d072 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4623,
 /**/
     4622,
 /**/