summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-02-25 20:48:26 +0000
committerBram Moolenaar <Bram@vim.org>2022-02-25 20:48:26 +0000
commit68afde4c9b4379b757cc72112c33df9cf221eba8 (patch)
tree93d160b7fa40ddf27b71705cfa2160886c63ab30
parent0e71b7d4ce3e1210150ce772e1af6956057a71ed (diff)
downloadvim-git-68afde4c9b4379b757cc72112c33df9cf221eba8.tar.gz
patch 8.2.4468: Coverity warns for uninitialized struct memberv8.2.4468
Problem: Coverity warns for uninitialized struct member. Solution: Set color.index to zero.
-rw-r--r--src/terminal.c1
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/terminal.c b/src/terminal.c
index 43a216f95..75f7a08aa 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -4193,6 +4193,7 @@ set_vterm_palette(VTerm *vterm, long_u *rgb)
color.red = (unsigned)(rgb[index] >> 16);
color.green = (unsigned)(rgb[index] >> 8) & 255;
color.blue = (unsigned)rgb[index] & 255;
+ color.index = 0;
vterm_state_set_palette_color(state, index, &color);
}
}
diff --git a/src/version.c b/src/version.c
index d82fff51a..86a780824 100644
--- a/src/version.c
+++ b/src/version.c
@@ -755,6 +755,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 4468,
+/**/
4467,
/**/
4466,