diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-02-25 20:57:11 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-02-25 20:57:11 +0000 |
commit | 05c1734c4f70a0d7fb2f06444e26afda018f8795 (patch) | |
tree | 25c45a4c9e80e08753d4525d800b426de7d61a1c | |
parent | 68afde4c9b4379b757cc72112c33df9cf221eba8 (diff) | |
download | vim-git-05c1734c4f70a0d7fb2f06444e26afda018f8795.tar.gz |
patch 8.2.4469: Coverity warns for uninitialized variablev8.2.4469
Problem: Coverity warns for uninitialized variable.
Solution: Set the value to zero.
-rw-r--r-- | src/ex_getln.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index a4f0a2607..4978ceec2 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -4672,7 +4672,7 @@ get_user_input( { char_u *xp_name; int xp_namelen; - long argt; + long argt = 0; // input() with a third argument: completion rettv->vval.v_string = NULL; diff --git a/src/version.c b/src/version.c index 86a780824..0889ac4d0 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 */ /**/ + 4469, +/**/ 4468, /**/ 4467, |