diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-02-25 20:48:26 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-02-25 20:48:26 +0000 |
commit | 68afde4c9b4379b757cc72112c33df9cf221eba8 (patch) | |
tree | 93d160b7fa40ddf27b71705cfa2160886c63ab30 /src | |
parent | 0e71b7d4ce3e1210150ce772e1af6956057a71ed (diff) | |
download | vim-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.
Diffstat (limited to 'src')
-rw-r--r-- | src/terminal.c | 1 | ||||
-rw-r--r-- | src/version.c | 2 |
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, |