xserver: Branch 'master'

Keith Packard keithp at kemper.freedesktop.org
Fri Mar 6 19:43:47 PST 2009


 composite/compalloc.c |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit f508446a2bcd887df9cf5db786b15fc3cbc435a0
Author: Peter Ã…strand <astrand at cendio.se>
Date:   Fri Mar 6 19:41:35 2009 -0800

    Composite: Uninitialized borderClipX/borderClipY
    
    Valgrind warned me about two other uninitialized variables, which are not
    padding. Valgrind output at the end. I'm a bit unsure of what these should
    be initialized to, is zero fine?

diff --git a/composite/compalloc.c b/composite/compalloc.c
index a2f3f14..1bac9a4 100644
--- a/composite/compalloc.c
+++ b/composite/compalloc.c
@@ -134,6 +134,8 @@ compRedirectWindow (ClientPtr pClient, WindowPtr pWin, int update)
 	}
 
 	REGION_NULL (pScreen, &cw->borderClip);
+	cw->borderClipX = 0;
+	cw->borderClipY = 0;
 	cw->update = CompositeRedirectAutomatic;
 	cw->clients = 0;
 	cw->oldx = COMP_ORIGIN_INVALID;


More information about the xorg-commit mailing list