limine: Fix bug where NULL term was accessed. Fixes #227

This commit is contained in:
mintsuki 2022-10-05 14:07:20 +02:00
parent ffa6d4e0c7
commit 6cbb9c4577
1 changed files with 4 additions and 3 deletions

View File

@ -1006,9 +1006,10 @@ FEAT_START
FEAT_END
// Clear terminal for kernels that will use the Limine terminal
term_write(term, "\e[2J\e[H", 7);
term->in_bootloader = false;
if (term != NULL) {
term_write(term, "\e[2J\e[H", 7);
term->in_bootloader = false;
}
#if defined (__x86_64__) || defined (__i386__)
#if defined (BIOS)