diff options
Diffstat (limited to 'ui/console.c')
-rw-r--r-- | ui/console.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/console.c b/ui/console.c index da341f08da..aa1e09462c 100644 --- a/ui/console.c +++ b/ui/console.c @@ -806,6 +806,9 @@ bool dpy_ui_info_supported(QemuConsole *con) if (con == NULL) { con = active_console; } + if (con == NULL) { + return false; + } return con->hw_ops->ui_info != NULL; } |