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

Problem:    Compiler warning for using uninitialized variable. (John Marriott)
Solution:   Initialize "neighbor".
c53e9c57a9
This commit is contained in:
zeertzjq 2022-08-25 12:58:14 +08:00
parent 711635872d
commit 88738bd28f

View File

@ -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);