[Spice-devel] [PATCH 6/9] qxl_driver: fix initialization from wrong pointer warning

Alon Levy alevy at redhat.com
Fri Apr 29 02:36:59 PDT 2011


---
 src/qxl_driver.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/qxl_driver.c b/src/qxl_driver.c
index 5c25f72..03da906 100644
--- a/src/qxl_driver.c
+++ b/src/qxl_driver.c
@@ -60,7 +60,7 @@ qxl_garbage_collect (qxl_screen_t *qxl)
 	    
 	    union QXLReleaseInfo *info = u64_to_pointer (id & ~POINTER_MASK);
 	    struct QXLCursorCmd *cmd = (struct QXLCursorCmd *)info;
-	    struct QXLDrawable *drawable = (struct qxl_drawable *)info;
+	    struct QXLDrawable *drawable = (struct QXLDrawable *)info;
 	    struct QXLSurfaceCmd *surface_cmd = (struct QXLSurfaceCmd *)info;
 	    int is_cursor = FALSE;
 	    int is_surface = FALSE;
-- 
1.7.4.4



More information about the Spice-devel mailing list