aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/console.c b/core/console.c
index f993237..1cee5da 100644
--- a/core/console.c
+++ b/core/console.c
@@ -292,7 +292,7 @@ ssize_t read(int fd __unused, void *buf, size_t req_count)
void flush_console_driver(void)
{
- if (con_driver->flush != NULL)
+ if (con_driver && con_driver->flush != NULL)
con_driver->flush();
}