diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-12-28 20:53:30 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-28 20:53:30 +0000 |
commit | 10c75c4a09a604ea674a2700aacb55914750b86d (patch) | |
tree | 7ff5132101764c8df780a3a64054d7915394bc33 | |
parent | 11ceb7d949e7c2fb36509a79dfe8df54fbdfa666 (diff) | |
download | vim-git-10c75c4a09a604ea674a2700aacb55914750b86d.tar.gz |
patch 8.2.3929: using unititialized variablev8.2.3929
Problem: Using unititialized variable.
Solution: Set the option flags to zero for a terminal option.
-rw-r--r-- | src/option.c | 3 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/option.c b/src/option.c index 9d596e41c..2aab253eb 100644 --- a/src/option.c +++ b/src/option.c @@ -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) { diff --git a/src/version.c b/src/version.c index 1dedcfecb..505d3f143 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 3929, +/**/ 3928, /**/ 3927, |