changeset 27887:7a60eaa9cb26 v8.2.4469

patch 8.2.4469: Coverity warns for uninitialized variable Commit: https://github.com/vim/vim/commit/05c1734c4f70a0d7fb2f06444e26afda018f8795 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 25 20:57:11 2022 +0000 patch 8.2.4469: Coverity warns for uninitialized variable Problem: Coverity warns for uninitialized variable. Solution: Set the value to zero.
author Bram Moolenaar <Bram@vim.org>
date Fri, 25 Feb 2022 22:00:04 +0100
parents ec78ff0c14ce
children d2f9d6b0bb8d
files src/ex_getln.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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,