diff src/misc1.c @ 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 9a98d8562637
children c5e47b752f07
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)