1
0
Fork 0

[blockquote] return in case of realloc failure

This commit is contained in:
Witold Filipczyk 2023-04-06 15:35:33 +02:00
parent 6d0b7b8788
commit 02e34611bf
1 changed files with 4 additions and 1 deletions

View File

@ -366,7 +366,10 @@ expand_lines(struct html_context *html_context, struct part *part,
}
for (line = 0; line < lines; line++) {
realloc_line(html_context, part->document, Y(y + line), X(x) + par_elformat.blockquote_level + par_elformat.orig_leftmargin);
if (realloc_line(html_context, part->document, Y(y + line),
X(x) + par_elformat.blockquote_level + par_elformat.orig_leftmargin) < 0) {
return;
}
if (par_elformat.blockquote_level) {
draw_blockquote_chars(part, y + line, html_context);