]> granicus.if.org Git - vim/commitdiff
patch 8.2.3425: warning for using uninitialized variable v8.2.3425
authorBram Moolenaar <Bram@vim.org>
Sat, 11 Sep 2021 10:15:09 +0000 (12:15 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 11 Sep 2021 10:15:09 +0000 (12:15 +0200)
Problem:    Warning for using uninitialized variable.
Solution:   Initialize it. (John Marriott)

src/screen.c
src/version.c

index 6a9f63248736432b68a86cb469e99595c6dcff80..6855bba575fc015467ce589a41ca793fde6f1168 100644 (file)
@@ -4787,8 +4787,8 @@ set_chars_option(win_T *wp, char_u **varp)
     int                round, i, len, entries;
     char_u     *p, *s;
     int                c1 = 0, c2 = 0, c3 = 0;
-    char_u     *last_multispace;       // Last occurrence of "multispace:"
-    int                multispace_len = 0;     // Length of lcs-multispace string
+    char_u     *last_multispace = NULL; // Last occurrence of "multispace:"
+    int                multispace_len = 0;      // Length of lcs-multispace string
     struct charstab
     {
        int     *cp;
index 75d083e9de637282947472c72fe5f8f58ccd7c88..05331a68691c989b8522a6abcdb7580905c53af4 100644 (file)
@@ -755,6 +755,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3425,
 /**/
     3424,
 /**/