mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-29 08:47:13 +00:00
Fix regression initialising QXL interface
st field in QXLInstance was not checked for NULL before initialisation. The additional check make Xspice crash during startup. Reported-by: Francois Gouget <fgouget@codeweavers.com> Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
parent
acd53b97fb
commit
6fef38c86e
@ -941,7 +941,6 @@ void red_qxl_init(RedsState *reds, QXLInstance *qxl)
|
||||
ClientCbs client_cbs = { NULL, };
|
||||
|
||||
spice_return_if_fail(qxl != NULL);
|
||||
spice_return_if_fail(qxl->st == NULL);
|
||||
|
||||
static gsize initialized = FALSE;
|
||||
if (g_once_init_enter(&initialized)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user