]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.4469: Coverity warns for uninitialized variable v8.2.4469
authorBram Moolenaar <Bram@vim.org>
Fri, 25 Feb 2022 20:57:11 +0000 (20:57 +0000)
committerBram Moolenaar <Bram@vim.org>
Fri, 25 Feb 2022 20:57:11 +0000 (20:57 +0000)
Problem:    Coverity warns for uninitialized variable.
Solution:   Set the value to zero.

src/ex_getln.c
src/version.c

index a4f0a2607af134987deae7212b5fee0cfbde609d..4978ceec21b0102725df9ff9cf2360a0611ad661 100644 (file)
@@ -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;
index 86a78082427c36ac5454a2bbd0fb25ac23bd20a3..0889ac4d02d7bf5db0f4aa67e75f6eb4fdefcae0 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4469,
 /**/
     4468,
 /**/