diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-12-28 16:35:20 -0500 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-12-28 18:34:01 -0500 |
commit | 26dfeb42dd515ebd0a0f1f1da3aadc11fb993041 (patch) | |
tree | 1215cd7148db1685660ae9571b24f3e752e6f61a /src/nvim/edit.c | |
parent | 0e913a08129b3e0e4d2d81eb424c9481c7aaee1c (diff) | |
download | rneovim-26dfeb42dd515ebd0a0f1f1da3aadc11fb993041.tar.gz rneovim-26dfeb42dd515ebd0a0f1f1da3aadc11fb993041.tar.bz2 rneovim-26dfeb42dd515ebd0a0f1f1da3aadc11fb993041.zip |
vim-patch:8.1.1032: warnings from clang static analyzer
Problem: Warnings from clang static analyzer. (Yegappan Lakshmanan)
Solution: Fix relevant warnings.
https://github.com/vim/vim/commit/2c519cf3bfe76083767ac94c674d2e161ed36587
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r-- | src/nvim/edit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index 36acc10f98..962ef9b245 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -3810,10 +3810,10 @@ static void ins_compl_fixRedoBufForLeader(char_u *ptr_arg) */ static buf_T *ins_compl_next_buf(buf_T *buf, int flag) { - static win_T *wp; + static win_T *wp = NULL; if (flag == 'w') { // just windows - if (buf == curbuf) { // first call for this flag/expansion + if (buf == curbuf || wp == NULL) { // first call for this flag/expansion wp = curwin; } assert(wp); |