Mercurial > vim
comparison src/terminal.c @ 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 | 68c33419fdc6 |
children | 62cc3b60493b |
comparison
equal
deleted
inserted
replaced
27884:6061cd922df1 | 27885:dd804c17e7e3 |
---|---|
4191 | 4191 |
4192 color.type = VTERM_COLOR_RGB; | 4192 color.type = VTERM_COLOR_RGB; |
4193 color.red = (unsigned)(rgb[index] >> 16); | 4193 color.red = (unsigned)(rgb[index] >> 16); |
4194 color.green = (unsigned)(rgb[index] >> 8) & 255; | 4194 color.green = (unsigned)(rgb[index] >> 8) & 255; |
4195 color.blue = (unsigned)rgb[index] & 255; | 4195 color.blue = (unsigned)rgb[index] & 255; |
4196 color.index = 0; | |
4196 vterm_state_set_palette_color(state, index, &color); | 4197 vterm_state_set_palette_color(state, index, &color); |
4197 } | 4198 } |
4198 } | 4199 } |
4199 | 4200 |
4200 /* | 4201 /* |