mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
updated for version 7.3.1120
Problem: Crash when regexp logging is enabled. Solution: Avoid using NULL pointers. Advance over count argument.
This commit is contained in:
@@ -2960,10 +2960,15 @@ log_subexpr(sub)
|
||||
sub->list.multi[j].end.col,
|
||||
(int)sub->list.multi[j].end.lnum);
|
||||
else
|
||||
{
|
||||
char *s = (char *)sub->list.line[j].start;
|
||||
char *e = (char *)sub->list.line[j].end;
|
||||
|
||||
fprintf(log_fd, "\n *** group %d, start: \"%s\", end: \"%s\"",
|
||||
j,
|
||||
(char *)sub->list.line[j].start,
|
||||
(char *)sub->list.line[j].end);
|
||||
s == NULL ? "NULL" : s,
|
||||
e == NULL ? "NULL" : e);
|
||||
}
|
||||
fprintf(log_fd, "\n");
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user