aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2021-09-06 18:25:10 +0100
committerSean Dewar <seandewar@users.noreply.github.com>2021-09-10 15:35:18 +0100
commitc23e87d9d1fcf4256bc19085f3b9744f57891d41 (patch)
tree83de9234fa11d221c1a43226c85fc640d56902e6
parentb3a97c56b659f7b9bf1c021d654b3df0236171c7 (diff)
downloadrneovim-c23e87d9d1fcf4256bc19085f3b9744f57891d41.tar.gz
rneovim-c23e87d9d1fcf4256bc19085f3b9744f57891d41.tar.bz2
rneovim-c23e87d9d1fcf4256bc19085f3b9744f57891d41.zip
vim-patch:8.2.3386: using uninitialized memory
Problem: Using uninitialized memory. Solution: Initialize the rm_ic field. (Dominique Pellé, closes vim/vim#8800) https://github.com/vim/vim/commit/a91871262670f9d3a4e5d1c5c6dbc02f85625f7d
-rw-r--r--src/nvim/indent.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/indent.c b/src/nvim/indent.c
index a6df0e97e6..609598b678 100644
--- a/src/nvim/indent.c
+++ b/src/nvim/indent.c
@@ -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;