commit | 4aa97427bede92d74b07ab875de91cb068724c8d | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon Apr 11 14:27:38 2011 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Mon Apr 11 14:27:38 2011 +0200 |
tree | fd266be34d79d3e8cdb291881c060f1e1d484892 | |
parent | 367bec852e494e2cdcf092237dfe9fd15b874b1e [diff] [blame] |
updated for version 7.3.158 Problem: Might use uninitialized memory in C indenting. Solution: Init arrays to empty.
diff --git a/src/misc1.c b/src/misc1.c index b894d0d..97e29c2 100644 --- a/src/misc1.c +++ b/src/misc1.c
@@ -6433,6 +6433,8 @@ /* 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)