]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.158 v7.3.158
authorBram Moolenaar <Bram@vim.org>
Mon, 11 Apr 2011 12:27:38 +0000 (14:27 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 11 Apr 2011 12:27:38 +0000 (14:27 +0200)
Problem:    Might use uninitialized memory in C indenting.
Solution:   Init arrays to empty.

src/misc1.c
src/version.c

index b894d0ddcbfdc85e371c10f479c7c2970802a8a2..97e29c290f6fad12787070cd02746e31d8a26e2c 100644 (file)
@@ -6433,6 +6433,8 @@ get_c_indent()
        /* find how indented the line beginning the comment is */
        getvcol(curwin, trypos, &col, NULL, NULL);
        amount = col;
+       *lead_start = NUL;
+       *lead_middle = NUL;
 
        p = curbuf->b_p_com;
        while (*p != NUL)
index 485073c5c172cd5b12b39378bcba84fa6d83ec11..77cd01002600e158fe33dcc752fb76179d32027b 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    158,
 /**/
     157,
 /**/