neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 88738bd28fe078441d44337873e8f156cb22af29
parent 711635872debd52930fac6d0a8f4204e7cc8d258
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Thu, 25 Aug 2022 12:58:14 +0800

vim-patch:8.2.1728: compiler warning for using uninitialized variable

Problem:    Compiler warning for using uninitialized variable. (John Marriott)
Solution:   Initialize "neighbor".
https://github.com/vim/vim/commit/c53e9c57a9846655c2d3169788f4beefa6d22d90

Diffstat:
Msrc/nvim/search.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nvim/search.c b/src/nvim/search.c @@ -4868,7 +4868,7 @@ static int fuzzy_match_compute_score(const char_u *const str, const int strSz, if (currIdx > 0) { // Camel case const char_u *p = str; - int neighbor; + int neighbor = ' '; for (uint32_t sidx = 0; sidx < currIdx; sidx++) { neighbor = utf_ptr2char((char *)p);