diff src/indent.c @ 25701:357a3bee56f5 v8.2.3386

patch 8.2.3386: using uninitialized memory Commit: https://github.com/vim/vim/commit/a91871262670f9d3a4e5d1c5c6dbc02f85625f7d Author: Dominique Pelle <dominique.pelle@gmail.com> Date: Sun Aug 29 22:12:56 2021 +0200 patch 8.2.3386: using uninitialized memory Problem: Using uninitialized memory. Solution: Initialize the rm_ic field. (Dominique Pell?, closes https://github.com/vim/vim/issues/8800)
author Bram Moolenaar <Bram@vim.org>
date Sun, 29 Aug 2021 22:15:04 +0200
parents 65f04b6effd5
children 4b2616ffe32b
line wrap: on
line diff
--- a/src/indent.c
+++ b/src/indent.c
@@ -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)