Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
2763:27dc785311d8 | 2764:b5f774f15927 |
---|---|
6431 int done = FALSE; | 6431 int done = FALSE; |
6432 | 6432 |
6433 /* find how indented the line beginning the comment is */ | 6433 /* find how indented the line beginning the comment is */ |
6434 getvcol(curwin, trypos, &col, NULL, NULL); | 6434 getvcol(curwin, trypos, &col, NULL, NULL); |
6435 amount = col; | 6435 amount = col; |
6436 *lead_start = NUL; | |
6437 *lead_middle = NUL; | |
6436 | 6438 |
6437 p = curbuf->b_p_com; | 6439 p = curbuf->b_p_com; |
6438 while (*p != NUL) | 6440 while (*p != NUL) |
6439 { | 6441 { |
6440 int align = 0; | 6442 int align = 0; |