[PATCH] composite: initialise pOldPixmap to NullPixmap at alloc time.

Dave Airlie airlied at gmail.com
Wed Jun 2 19:16:40 PDT 2010


From: Dave Airlie <airlied at redhat.com>

We just never initialised the malloced value.

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 composite/compalloc.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/composite/compalloc.c b/composite/compalloc.c
index 3694ab8..7930ebe 100644
--- a/composite/compalloc.c
+++ b/composite/compalloc.c
@@ -143,6 +143,7 @@ compRedirectWindow (ClientPtr pClient, WindowPtr pWin, int update)
 	cw->oldy = COMP_ORIGIN_INVALID;
 	cw->damageRegistered = FALSE;
 	cw->damaged = FALSE;
+	cw->pOldPixmap = NullPixmap;
 	dixSetPrivate(&pWin->devPrivates, CompWindowPrivateKey, cw);
     }
     ccw->next = cw->clients;
-- 
1.6.5.2



More information about the xorg-devel mailing list