limine: Fix bug where NULL term was accessed. Fixes #227
This commit is contained in:
parent
ffa6d4e0c7
commit
6cbb9c4577
@ -1006,9 +1006,10 @@ FEAT_START
|
|||||||
FEAT_END
|
FEAT_END
|
||||||
|
|
||||||
// Clear terminal for kernels that will use the Limine terminal
|
// Clear terminal for kernels that will use the Limine terminal
|
||||||
term_write(term, "\e[2J\e[H", 7);
|
if (term != NULL) {
|
||||||
|
term_write(term, "\e[2J\e[H", 7);
|
||||||
term->in_bootloader = false;
|
term->in_bootloader = false;
|
||||||
|
}
|
||||||
|
|
||||||
#if defined (__x86_64__) || defined (__i386__)
|
#if defined (__x86_64__) || defined (__i386__)
|
||||||
#if defined (BIOS)
|
#if defined (BIOS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user