comparison 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
comparison
equal deleted inserted replaced
25700:d4faa2c5211b 25701:357a3bee56f5
951 951
952 regmatch.regprog = vim_regcomp(curbuf->b_p_flp, 952 regmatch.regprog = vim_regcomp(curbuf->b_p_flp,
953 RE_MAGIC + RE_STRING + RE_AUTO + RE_STRICT); 953 RE_MAGIC + RE_STRING + RE_AUTO + RE_STRICT);
954 if (regmatch.regprog != NULL) 954 if (regmatch.regprog != NULL)
955 { 955 {
956 regmatch.rm_ic = FALSE;
956 if (vim_regexec(&regmatch, line, 0)) 957 if (vim_regexec(&regmatch, line, 0))
957 { 958 {
958 if (wp->w_briopt_list > 0) 959 if (wp->w_briopt_list > 0)
959 bri += wp->w_briopt_list; 960 bri += wp->w_briopt_list;
960 else 961 else