summaryrefslogtreecommitdiff
path: root/uxa
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2012-11-17 13:11:12 -0800
committerChris Wilson <chris@chris-wilson.co.uk>2012-11-20 11:39:47 +0000
commitedefb64d2b1c95b0b678cb222273ab64b2e6db2a (patch)
tree38cd6af5227ff6f6c0d8882b8e8a4ddb1872f001 /uxa
parent18b2e2a82724407196001ca853bd83150c66c5bd (diff)
uxa: Work around uninitialized-value warning.
The compiler isn't noticing that localDst only diverges from pDst when the _copy variables have also been set.
Diffstat (limited to 'uxa')
-rw-r--r--uxa/uxa-render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uxa/uxa-render.c b/uxa/uxa-render.c
index 4463dc2f..d783ea26 100644
--- a/uxa/uxa-render.c
+++ b/uxa/uxa-render.c
@@ -962,7 +962,7 @@ uxa_try_driver_composite(CARD8 op,
RegionRec region;
BoxPtr pbox;
int nbox;
- int xDst_copy, yDst_copy;
+ int xDst_copy = 0, yDst_copy = 0;
int src_off_x, src_off_y, mask_off_x, mask_off_y, dst_off_x, dst_off_y;
PixmapPtr pSrcPix, pMaskPix = NULL, pDstPix;
PicturePtr localSrc, localMask = NULL;