0
0
mirror of https://github.com/vim/vim.git synced 2025-08-26 20:03:41 -04:00

patch 8.2.1728: compiler warning for using uninitialized variable

Problem:    Compiler warning for using uninitialized variable. (John Marriott)
Solution:   Initialize "neighbor".
This commit is contained in:
Bram Moolenaar 2020-09-22 22:08:32 +02:00
parent 99ca9c4868
commit c53e9c57a9
2 changed files with 3 additions and 1 deletions

View File

@ -4293,7 +4293,7 @@ fuzzy_match_compute_score(
if (currIdx > 0) if (currIdx > 0)
{ {
// Camel case // Camel case
int neighbor; int neighbor = ' ';
int curr; int curr;
int neighborSeparator; int neighborSeparator;

View File

@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1728,
/**/ /**/
1727, 1727,
/**/ /**/