mirror of
https://github.com/vim/vim.git
synced 2025-07-24 10:45:12 -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:
parent
11ceb7d949
commit
10c75c4a09
@ -3962,6 +3962,9 @@ get_option_value(
|
||||
char_u key_name[2];
|
||||
char_u *p;
|
||||
|
||||
if (flagsp != NULL)
|
||||
*flagsp = 0; // terminal option has no flags
|
||||
|
||||
// check for a terminal option
|
||||
if (key < 0)
|
||||
{
|
||||
|
@ -749,6 +749,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
3929,
|
||||
/**/
|
||||
3928,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user