summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-09-22 22:08:32 +0200
committerBram Moolenaar <Bram@vim.org>2020-09-22 22:08:32 +0200
commitc53e9c57a9846655c2d3169788f4beefa6d22d90 (patch)
treefb502aa790034180f4a9396fe2d4cc20cc232033
parent99ca9c4868bb1669706b9e3de9a9218bd11cc459 (diff)
patch 8.2.1728: compiler warning for using uninitialized variablev8.2.1728
Problem: Compiler warning for using uninitialized variable. (John Marriott) Solution: Initialize "neighbor".
-rw-r--r--src/search.c2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/search.c b/src/search.c
index 59b46e54d8..badf793718 100644
--- a/src/search.c
+++ b/src/search.c
@@ -4293,7 +4293,7 @@ fuzzy_match_compute_score(
if (currIdx > 0)
{
// Camel case
- int neighbor;
+ int neighbor = ' ';
int curr;
int neighborSeparator;
diff --git a/src/version.c b/src/version.c
index cafc31d325..a9852e94e3 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1728,
+/**/
1727,
/**/
1726,