summaryrefslogtreecommitdiff
path: root/src/misc1.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc1.c')
-rw-r--r--src/misc1.c2
1 files changed, 2 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)