diff src/search.c @ 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 0491b9cafd44
children 5193420617f1
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;