summaryrefslogtreecommitdiff
path: root/composite
diff options
context:
space:
mode:
authorPeter Åstrand <astrand@cendio.se>2009-03-06 19:41:35 -0800
committerKeith Packard <keithp@keithp.com>2009-03-06 19:43:10 -0800
commitf508446a2bcd887df9cf5db786b15fc3cbc435a0 (patch)
treead44d9584b9033a044b57b18735bb67144305354 /composite
parentd1338a94805cc774fe0a5d00c2225a3ee9673a9f (diff)
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?
Diffstat (limited to 'composite')
-rw-r--r--composite/compalloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/composite/compalloc.c b/composite/compalloc.c
index a2f3f140a..1bac9a417 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;