0
0
mirror of https://github.com/vim/vim.git synced 2025-07-25 10:54:51 -04:00

patch 8.2.3929: using unititialized variable

Problem:    Using unititialized variable.
Solution:   Set the option flags to zero for a terminal option.
This commit is contained in:
Bram Moolenaar 2021-12-28 20:53:30 +00:00
parent 11ceb7d949
commit 10c75c4a09
2 changed files with 5 additions and 0 deletions

View File

@ -3962,6 +3962,9 @@ get_option_value(
char_u key_name[2]; char_u key_name[2];
char_u *p; char_u *p;
if (flagsp != NULL)
*flagsp = 0; // terminal option has no flags
// check for a terminal option // check for a terminal option
if (key < 0) if (key < 0)
{ {

View File

@ -749,6 +749,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
3929,
/**/ /**/
3928, 3928,
/**/ /**/