Commit 070fb84e authored by Ville Syrjälä's avatar Ville Syrjälä

sna/fb: Initialize xoff/yoff

The compiler seems to think src/mask xoff/yoff can be used
uninitialized. Zero them to make sure.
Signed-off-by: Ville Syrjälä's avatarVille Syrjälä <ville.syrjala@linux.intel.com>
parent be30b162
......@@ -313,8 +313,10 @@ image_from_pict_internal(PicturePtr pict, Bool has_clip, int *xoff, int *yoff,
{
pixman_image_t *image = NULL;
if (!pict)
if (!pict) {
*xoff = *yoff = 0;
return NULL;
}
if (pict->pDrawable) {
image = create_bits_picture(pict, has_clip, xoff, yoff);
......@@ -336,6 +338,8 @@ image_from_pict_internal(PicturePtr pict, Bool has_clip, int *xoff, int *yoff,
image = create_conical_gradient_image(gradient);
}
*xoff = *yoff = 0;
} else {
*xoff = *yoff = 0;
}
if (image)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment