]> git.proxmox.com Git - mirror_qemu.git/commit
ui: add precondition for dpy_get_ui_info()
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 12 Sep 2023 06:13:01 +0000 (10:13 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 12 Sep 2023 07:14:09 +0000 (11:14 +0400)
commita92e7bb4cad57cc5c8817fb18fb25650507b69f8
treefe679976e6c086661aa2142917a03085699d73b9
parent48a35e12faf90a896c5aa4755812201e00d60316
ui: add precondition for dpy_get_ui_info()

Ensure that it only get called when dpy_ui_info_supported(). The
function should always return a result. There should be a non-null
console or active_console.

Modify the argument to be const as well.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Albert Esteve <aesteve@redhat.com>
include/ui/console.h
ui/console.c