]> granicus.if.org Git - vim/commitdiff
patch 8.2.4485: compiler warning for uninitialized variable v8.2.4485
authorBram Moolenaar <Bram@vim.org>
Mon, 28 Feb 2022 21:02:19 +0000 (21:02 +0000)
committerBram Moolenaar <Bram@vim.org>
Mon, 28 Feb 2022 21:02:19 +0000 (21:02 +0000)
Problem:    Compiler warning for uninitialized variable.
Solution:   Initialize the variable. (John Marriott)

src/cmdexpand.c
src/version.c

index f46045e6e17f262c93269aa92fb0835348a255fc..b261415e85556535475c21968d375e5775dcd3c8 100644 (file)
@@ -3003,7 +3003,7 @@ ExpandUserDefined(
     garray_T   ga;
     int                fuzzy;
     int                match;
-    int                score;
+    int                score = 0;
 
     fuzzy = cmdline_fuzzy_complete(pat);
     *matches = NULL;
index c64bd83e97050b9d947b40068a9b4ae257e9eb6e..a574acb3aaed83b92db42e5dcfb57cc17b29d7db 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4485,
 /**/
     4484,
 /**/