changeset 22359:f4d1fe8e04cf v8.2.1728

patch 8.2.1728: compiler warning for using uninitialized variable Commit: https://github.com/vim/vim/commit/c53e9c57a9846655c2d3169788f4beefa6d22d90 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 22 22:08:32 2020 +0200 patch 8.2.1728: compiler warning for using uninitialized variable Problem: Compiler warning for using uninitialized variable. (John Marriott) Solution: Initialize "neighbor".
author Bram Moolenaar <Bram@vim.org>
date Tue, 22 Sep 2020 22:15:03 +0200
parents b6037eb43146
children d55224e63208
files src/search.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
 
--- 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,