diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-02-28 21:02:19 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-02-28 21:02:19 +0000 |
commit | 3e7637bd266da43c9158f0e1cfe3f7f7843d7147 (patch) | |
tree | 599bbdc7e60b0c156d0600a540b014a54ca3f075 | |
parent | 1983f1aa315711852174be1b7089f71e24c19e27 (diff) | |
download | vim-git-3e7637bd266da43c9158f0e1cfe3f7f7843d7147.tar.gz |
patch 8.2.4485: compiler warning for uninitialized variablev8.2.4485
Problem: Compiler warning for uninitialized variable.
Solution: Initialize the variable. (John Marriott)
-rw-r--r-- | src/cmdexpand.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/cmdexpand.c b/src/cmdexpand.c index f46045e6e..b261415e8 100644 --- a/src/cmdexpand.c +++ b/src/cmdexpand.c @@ -3003,7 +3003,7 @@ ExpandUserDefined( garray_T ga; int fuzzy; int match; - int score; + int score = 0; fuzzy = cmdline_fuzzy_complete(pat); *matches = NULL; diff --git a/src/version.c b/src/version.c index c64bd83e9..a574acb3a 100644 --- a/src/version.c +++ b/src/version.c @@ -755,6 +755,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4485, +/**/ 4484, /**/ 4483, |