aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSean Dewar <seandewar@users.noreply.github.com>2021-08-25 17:15:33 +0100
committerSean Dewar <seandewar@users.noreply.github.com>2021-09-17 02:10:45 +0100
commit1e0d563967d139dfe5f42993c90f888c5a48c634 (patch)
treea36b688da27df1f9d46e34c2aa87448f480206f9 /src
parentd78f06852e78daa4955545576ce5dfad208e4a7b (diff)
downloadrneovim-1e0d563967d139dfe5f42993c90f888c5a48c634.tar.gz
rneovim-1e0d563967d139dfe5f42993c90f888c5a48c634.tar.bz2
rneovim-1e0d563967d139dfe5f42993c90f888c5a48c634.zip
vim-patch:8.2.3375: using uninitialized memory
Problem: Using uninitialized memory. Solution: Initialize textprop_save_len. https://github.com/vim/vim/commit/df9070e300dabf0c54de87a75973a80adb38afa3 textprop_save_len is N/A.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/memline.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/memline.c b/src/nvim/memline.c
index f1774a20cf..4ccbb31e2c 100644
--- a/src/nvim/memline.c
+++ b/src/nvim/memline.c
@@ -264,6 +264,7 @@ int ml_open(buf_T *buf)
buf->b_ml.ml_line_lnum = 0; // no cached line
buf->b_ml.ml_line_offset = 0;
buf->b_ml.ml_chunksize = NULL;
+ buf->b_ml.ml_usedchunks = 0;
if (cmdmod.noswapfile) {
buf->b_p_swf = false;