]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.1.0737: compiler warning for uninitialized variable v8.1.0737
authorBram Moolenaar <Bram@vim.org>
Sun, 13 Jan 2019 14:42:02 +0000 (15:42 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 13 Jan 2019 14:42:02 +0000 (15:42 +0100)
Problem:    Compiler warning for uninitialized variable.
Solution:   Add initialization. (John Marriott)

src/eval.c
src/version.c

index 78e4eae1526c56ac35e5617b402db5534e49cdcd..993a5bc73b065b50681455835abd89950212cc83 100644 (file)
@@ -4208,7 +4208,7 @@ eval7(
                if (**arg == '0' && ((*arg)[1] == 'z' || (*arg)[1] == 'Z'))
                {
                    char_u  *bp;
-                   blob_T  *blob;
+                   blob_T  *blob = NULL;  // init for gcc
 
                    // Blob constant: 0z0123456789abcdef
                    if (evaluate)
index 643830a6787050f8e2f2cb7b89ea8b334f85afe5..9f4bbfce744df370fbfcac1c19adccd4b1df316f 100644 (file)
@@ -795,6 +795,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    737,
 /**/
     736,
 /**/