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/terminal.c | |
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/terminal.c')
-rw-r--r-- | src/terminal.c | 1 |
1 files changed, 1 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); } } |