summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2011-10-20 11:44:28 +0100
committerAdam Jackson <ajax@redhat.com>2015-10-26 12:19:36 -0400
commit833e3e84a077766b16b42d2b24931c14cd00bfb9 (patch)
tree362f993204f583130c5c76ee830c5e9c3c2522d1
parent26a5364d507dff012283dc5d6f86b80c5936a807 (diff)
exa: initialise mask_off_x and mask_off_y
These get used at the end of the function in a calculation, even though the result isn't used its not pretty. Pointed out by coverity. Signed-off-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> (cherry picked from commit 4c7cefe24001279a558dd875949d40ede49ef702)
-rw-r--r--exa/exa_render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/exa/exa_render.c b/exa/exa_render.c
index e3e552697..fc3ddea79 100644
--- a/exa/exa_render.c
+++ b/exa/exa_render.c
@@ -636,7 +636,7 @@ exaTryDriverComposite(CARD8 op,
RegionRec region;
BoxPtr pbox;
int nbox;
- int src_off_x, src_off_y, mask_off_x, mask_off_y, dst_off_x, dst_off_y;
+ int src_off_x, src_off_y, mask_off_x = 0, mask_off_y = 0, dst_off_x, dst_off_y;
PixmapPtr pSrcPix = NULL, pMaskPix = NULL, pDstPix;
ExaPixmapPrivPtr pSrcExaPix = NULL, pMaskExaPix = NULL, pDstExaPix;