[PATCH] Fix regression initialising QXL interface

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



st field in QXLInstance was not checked for NULL before
initialisation.
The additional check make Xspice crash during startup.

Reported-by: Francois Gouget <fgouget@xxxxxxxxxxxxxxx>
---
 server/red-qxl.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/server/red-qxl.c b/server/red-qxl.c
index 1d29496..491046f 100644
--- a/server/red-qxl.c
+++ b/server/red-qxl.c
@@ -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)) {
-- 
2.5.0

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]