mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
[blockquote] return in case of realloc failure
This commit is contained in:
parent
5e2610b691
commit
a373c30a6a
@ -366,7 +366,10 @@ expand_lines(struct html_context *html_context, struct part *part,
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (line = 0; line < lines; line++) {
|
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) {
|
if (par_elformat.blockquote_level) {
|
||||||
draw_blockquote_chars(part, y + line, html_context);
|
draw_blockquote_chars(part, y + line, html_context);
|
||||||
|
Loading…
Reference in New Issue
Block a user