diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-09-22 22:08:32 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-09-22 22:08:32 +0200 |
commit | c53e9c57a9846655c2d3169788f4beefa6d22d90 (patch) | |
tree | fb502aa790034180f4a9396fe2d4cc20cc232033 | |
parent | 99ca9c4868bb1669706b9e3de9a9218bd11cc459 (diff) | |
download | vim-git-c53e9c57a9846655c2d3169788f4beefa6d22d90.tar.gz |
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.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/search.c b/src/search.c index 59b46e54d..badf79371 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 cafc31d32..a9852e94e 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, |