From 68afde4c9b4379b757cc72112c33df9cf221eba8 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 25 Feb 2022 20:48:26 +0000 Subject: [PATCH] patch 8.2.4468: Coverity warns for uninitialized struct member Problem: Coverity warns for uninitialized struct member. Solution: Set color.index to zero. --- src/terminal.c | 1 + src/version.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/terminal.c b/src/terminal.c index 43a216f951..75f7a08aae 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 d82fff51a3..86a7808242 100644 --- a/src/version.c +++ b/src/version.c @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 4468, /**/ 4467, /**/ -- 2.47.3