commit | c53e9c57a9846655c2d3169788f4beefa6d22d90 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Tue Sep 22 22:08:32 2020 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Tue Sep 22 22:08:32 2020 +0200 |
tree | fb502aa790034180f4a9396fe2d4cc20cc232033 | |
parent | 99ca9c4868bb1669706b9e3de9a9218bd11cc459 [diff] [blame] |
patch 8.2.1728: compiler warning for using uninitialized variable Problem: Compiler warning for using uninitialized variable. (John Marriott) Solution: Initialize "neighbor".
diff --git a/src/search.c b/src/search.c index 59b46e5..badf793 100644 --- a/src/search.c +++ b/src/search.c
@@ -4293,7 +4293,7 @@ if (currIdx > 0) { // Camel case - int neighbor; + int neighbor = ' '; int curr; int neighborSeparator;