diff options
author | Toomas Soome <tsoome@FreeBSD.org> | 2021-01-10 19:56:34 +0000 |
---|---|---|
committer | Toomas Soome <tsoome@FreeBSD.org> | 2021-01-10 19:59:52 +0000 |
commit | 89632acb50f1a0bcc6ce82b9921f779cafaa9468 (patch) | |
tree | ed1287ba78c91a32d8b218730ed4e8f73f478fe8 /stand/i386/libi386 | |
parent | a013e285dfd6b89b1908ca13febb0fdb0a7f3b1f (diff) | |
download | src-89632acb50f1a0bcc6ce82b9921f779cafaa9468.tar.gz src-89632acb50f1a0bcc6ce82b9921f779cafaa9468.zip |
loader: term_image_display() should test screen_buffer
Make sure screen_buffer is not NULL.
Diffstat (limited to 'stand/i386/libi386')
-rw-r--r-- | stand/i386/libi386/vidconsole.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stand/i386/libi386/vidconsole.c b/stand/i386/libi386/vidconsole.c index 47150b3dd09f..b42a476ef85e 100644 --- a/stand/i386/libi386/vidconsole.c +++ b/stand/i386/libi386/vidconsole.c @@ -109,6 +109,9 @@ term_image_display(teken_gfx_t *state, const teken_rect_t *r) teken_pos_t p; int idx; + if (screen_buffer == NULL) + return; + for (p.tp_row = r->tr_begin.tp_row; p.tp_row < r->tr_end.tp_row; p.tp_row++) { for (p.tp_col = r->tr_begin.tp_col; |