mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user