commit | 3e7637bd266da43c9158f0e1cfe3f7f7843d7147 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon Feb 28 21:02:19 2022 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Mon Feb 28 21:02:19 2022 +0000 |
tree | 599bbdc7e60b0c156d0600a540b014a54ca3f075 | |
parent | 1983f1aa315711852174be1b7089f71e24c19e27 [diff] [blame] |
patch 8.2.4485: compiler warning for uninitialized variable Problem: Compiler warning for uninitialized variable. Solution: Initialize the variable. (John Marriott)
diff --git a/src/cmdexpand.c b/src/cmdexpand.c index f46045e..b261415 100644 --- a/src/cmdexpand.c +++ b/src/cmdexpand.c
@@ -3003,7 +3003,7 @@ garray_T ga; int fuzzy; int match; - int score; + int score = 0; fuzzy = cmdline_fuzzy_complete(pat); *matches = NULL;