diff src/ex_getln.c @ 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 515ce8e07bf2
children 06535d568f74
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;