[Spice-devel] [RFC 09/33] qxl_driver: fix initialization from wrong pointer warning

Alon Levy alevy at redhat.com
Wed Apr 27 08:55:58 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 3514360..dced9fb 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