]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.0832: compiler warning for uninitialized variable v8.2.0832
authorBram Moolenaar <Bram@vim.org>
Wed, 27 May 2020 19:29:04 +0000 (21:29 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 27 May 2020 19:29:04 +0000 (21:29 +0200)
Problem:    Compiler warning for uninitialized variable. (Tony Mechelynck)
Solution:   Add initial value.

src/map.c
src/version.c

index 6c926336c1c3c50cf511d25dcf1573fdd76c1895..4f0c8709af87b243926608adf23d331498a3db88 100644 (file)
--- a/src/map.c
+++ b/src/map.c
@@ -2187,7 +2187,7 @@ get_maparg(typval_T *argvars, typval_T *rettv, int exact)
     int                abbr = FALSE;
     int                get_dict = FALSE;
     mapblock_T *mp;
-    mapblock_T *mp_simplified;
+    mapblock_T *mp_simplified = NULL;
     int                buffer_local;
     int                flags = REPTERM_FROM_PART | REPTERM_DO_LT;
 
index f939822cd12729e9770c3ac1571bfbacb0c044ec..463025c97c53dd3a129ea83b137c01e313d74320 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    832,
 /**/
     831,
 /**/