mirror of
https://github.com/neovim/neovim.git
synced 2025-09-15 15:58:17 +00:00
vim-patch:8.2.3386: using uninitialized memory
Problem: Using uninitialized memory.
Solution: Initialize the rm_ic field. (Dominique Pellé, closes vim/vim#8800)
a918712626
This commit is contained in:
@@ -474,6 +474,7 @@ int get_breakindent_win(win_T *wp, char_u *line)
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (regmatch.regprog != NULL) {
|
if (regmatch.regprog != NULL) {
|
||||||
|
regmatch.rm_ic = false;
|
||||||
if (vim_regexec(®match, line, 0)) {
|
if (vim_regexec(®match, line, 0)) {
|
||||||
if (wp->w_briopt_list > 0) {
|
if (wp->w_briopt_list > 0) {
|
||||||
bri += wp->w_briopt_list;
|
bri += wp->w_briopt_list;
|
||||||
|
Reference in New Issue
Block a user