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:
Sean Dewar 2021-09-06 18:25:10 +01:00
parent b3a97c56b6
commit c23e87d9d1
No known key found for this signature in database
GPG Key ID: 08CC2C83AD41B581

View File

@ -474,6 +474,7 @@ int get_breakindent_win(win_T *wp, char_u *line)
};
if (regmatch.regprog != NULL) {
regmatch.rm_ic = false;
if (vim_regexec(&regmatch, line, 0)) {
if (wp->w_briopt_list > 0) {
bri += wp->w_briopt_list;