From: Bram Moolenaar Date: Tue, 28 Dec 2021 20:53:30 +0000 (+0000) Subject: patch 8.2.3929: using unititialized variable X-Git-Tag: v8.2.3929 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=10c75c4a09a604ea674a2700aacb55914750b86d;p=thirdparty%2Fvim.git patch 8.2.3929: using unititialized variable Problem: Using unititialized variable. Solution: Set the option flags to zero for a terminal option. --- diff --git a/src/option.c b/src/option.c index 9d596e41ca..2aab253eb0 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 1dedcfecbb..505d3f1430 100644 --- a/src/version.c +++ b/src/version.c @@ -749,6 +749,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 3929, /**/ 3928, /**/