forked from aniani/vim
updated for version 7.3.158
Problem: Might use uninitialized memory in C indenting. Solution: Init arrays to empty.
This commit is contained in:
parent
367bec852e
commit
4aa97427be
@ -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)
|
||||
|
@ -714,6 +714,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
158,
|
||||
/**/
|
||||
157,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user