changeset 2764:b5f774f15927 v7.3.158

updated for version 7.3.158 Problem: Might use uninitialized memory in C indenting. Solution: Init arrays to empty.
author Bram Moolenaar <bram@vim.org>
date Mon, 11 Apr 2011 14:27:38 +0200
parents 27dc785311d8
children 27a73cdbdb10
files src/misc1.c src/version.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -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)
--- a/src/version.c
+++ b/src/version.c
@@ -715,6 +715,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    158,
+/**/
     157,
 /**/
     156,