]> granicus.if.org Git - vim/commitdiff
patch 8.0.0577: warning for uninitialized variable v8.0.0577
authorBram Moolenaar <Bram@vim.org>
Fri, 21 Apr 2017 21:18:26 +0000 (23:18 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 21 Apr 2017 21:18:26 +0000 (23:18 +0200)
Problem:    Warning for uninitialized variable. (John Marriott)
Solution:   Initialize "indent".

src/misc1.c
src/version.c

index 1a220e1eb58cbff80e50c5db68c921801a13f35e..bc927b16284b787e68d2d7327c3b8f755fbbca46 100644 (file)
@@ -9251,7 +9251,7 @@ find_match(int lookfor, linenr_T ourscope)
     int
 get_expr_indent(void)
 {
-    int                indent;
+    int                indent = -1;
     char_u     *inde_copy;
     pos_T      save_pos;
     colnr_T    save_curswant;
index b0ccc143a88e6095680a5db718a10b682ced16e9..663717b60e2b35149d3c170aac7ee2dbc1d926cc 100644 (file)
@@ -764,6 +764,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    577,
 /**/
     576,
 /**/