]> granicus.if.org Git - vim/commitdiff
patch 8.2.3330: Coverity reports using uninitialized field v8.2.3330
authorBram Moolenaar <Bram@vim.org>
Wed, 11 Aug 2021 15:01:45 +0000 (17:01 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 11 Aug 2021 15:01:45 +0000 (17:01 +0200)
Problem:    Coverity reports using uninitialized field.
Solution:   Initialize the field early.

src/tag.c
src/version.c

index 4e96e0d4303fc2b205c198c9abf7c2fb88ea7e55..d729c4621a2c6da878765683bf49ee187fe9ce42 100644 (file)
--- a/src/tag.c
+++ b/src/tag.c
@@ -1680,6 +1680,7 @@ find_tags(
 
     help_save = curbuf->b_help;
     orgpat.pat = pat;
+    orgpat.regmatch.regprog = NULL;
     vimconv.vc_type = CONV_NONE;
 
     /*
index b8e17af80042dd3a90dc6740975b58b7d97259d8..2b8b5081075868ef5263f20174b6d9096b7535a3 100644 (file)
@@ -755,6 +755,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3330,
 /**/
     3329,
 /**/