patch 8.2.3386: using uninitialized memory

Problem:    Using uninitialized memory.
Solution:   Initialize the rm_ic field. (Dominique Pellé, closes #8800)
This commit is contained in:
Dominique Pelle
2021-08-29 22:12:56 +02:00
committed by Bram Moolenaar
parent 89a9c159f2
commit a918712626
2 changed files with 3 additions and 0 deletions

View File

@ -953,6 +953,7 @@ get_breakindent_win(
RE_MAGIC + RE_STRING + RE_AUTO + RE_STRICT);
if (regmatch.regprog != NULL)
{
regmatch.rm_ic = FALSE;
if (vim_regexec(&regmatch, line, 0))
{
if (wp->w_briopt_list > 0)

View File

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