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)
{
// Camel case
int neighbor;
int neighbor = ' ';
int curr;
int neighborSeparator;

View File

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