diff options
author | 2023-09-12 10:13:01 +0400 | |
---|---|---|
committer | 2023-09-12 11:14:09 +0400 | |
commit | a92e7bb4cad57cc5c8817fb18fb25650507b69f8 (patch) | |
tree | fe679976e6c086661aa2142917a03085699d73b9 /scripts/qapi/source.py | |
parent | ui: fix crash when there are no active_console (diff) | |
download | qemu-a92e7bb4cad57cc5c8817fb18fb25650507b69f8.tar.xz qemu-a92e7bb4cad57cc5c8817fb18fb25650507b69f8.zip |
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>
Diffstat (limited to 'scripts/qapi/source.py')
0 files changed, 0 insertions, 0 deletions