mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
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:
parent
711635872d
commit
88738bd28f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user