summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-04-11 14:27:38 +0200
committerBram Moolenaar <Bram@vim.org>2011-04-11 14:27:38 +0200
commit4aa97427bede92d74b07ab875de91cb068724c8d (patch)
treefd266be34d79d3e8cdb291881c060f1e1d484892 /src
parent367bec852e494e2cdcf092237dfe9fd15b874b1e (diff)
downloadvim-4aa97427bede92d74b07ab875de91cb068724c8d.zip
updated for version 7.3.158
Problem: Might use uninitialized memory in C indenting. Solution: Init arrays to empty.
Diffstat (limited to 'src')
-rw-r--r--src/misc1.c2
-rw-r--r--src/version.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/misc1.c b/src/misc1.c
index b894d0ddc..97e29c290 100644
--- 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)
diff --git a/src/version.c b/src/version.c
index 485073c5c..77cd01002 100644
--- 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,