mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-20 00:33:57 +00:00
loader: term_image_display() should test screen_buffer
Make sure screen_buffer is not NULL.
This commit is contained in:
parent
a013e285df
commit
89632acb50
|
@ -147,6 +147,9 @@ term_image_display(teken_gfx_t *state, const teken_rect_t *r)
|
||||||
teken_pos_t p;
|
teken_pos_t p;
|
||||||
int idx;
|
int idx;
|
||||||
|
|
||||||
|
if (screen_buffer == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
for (p.tp_row = r->tr_begin.tp_row;
|
for (p.tp_row = r->tr_begin.tp_row;
|
||||||
p.tp_row < r->tr_end.tp_row; p.tp_row++) {
|
p.tp_row < r->tr_end.tp_row; p.tp_row++) {
|
||||||
for (p.tp_col = r->tr_begin.tp_col;
|
for (p.tp_col = r->tr_begin.tp_col;
|
||||||
|
|
|
@ -109,6 +109,9 @@ term_image_display(teken_gfx_t *state, const teken_rect_t *r)
|
||||||
teken_pos_t p;
|
teken_pos_t p;
|
||||||
int idx;
|
int idx;
|
||||||
|
|
||||||
|
if (screen_buffer == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
for (p.tp_row = r->tr_begin.tp_row;
|
for (p.tp_row = r->tr_begin.tp_row;
|
||||||
p.tp_row < r->tr_end.tp_row; p.tp_row++) {
|
p.tp_row < r->tr_end.tp_row; p.tp_row++) {
|
||||||
for (p.tp_col = r->tr_begin.tp_col;
|
for (p.tp_col = r->tr_begin.tp_col;
|
||||||
|
|
Loading…
Reference in a new issue