changeset 27885:dd804c17e7e3 v8.2.4468

patch 8.2.4468: Coverity warns for uninitialized struct member Commit: https://github.com/vim/vim/commit/68afde4c9b4379b757cc72112c33df9cf221eba8 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 25 20:48:26 2022 +0000 patch 8.2.4468: Coverity warns for uninitialized struct member Problem: Coverity warns for uninitialized struct member. Solution: Set color.index to zero.
author Bram Moolenaar <Bram@vim.org>
date Fri, 25 Feb 2022 22:00:03 +0100
parents 6061cd922df1
children ec78ff0c14ce
files src/terminal.c src/version.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -4193,6 +4193,7 @@ set_vterm_palette(VTerm *vterm, long_u *
 	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);
     }
 }
--- 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,