[cairo-commit] src/cairo-xlib-render-compositor.c
Chris Wilson
ickle at kemper.freedesktop.org
Mon Jan 28 19:56:17 PST 2013
src/cairo-xlib-render-compositor.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 41ae904461e344fbfa3be3d276a7102bb4304b19
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Tue Jan 29 03:52:02 2013 +0000
xlib/shm: Appease the compiler for a 'maybe used uninitialised' variable
Initialise shm during its declaration so that it is indeed initialised
for the cleanup after every path.
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/cairo-xlib-render-compositor.c b/src/cairo-xlib-render-compositor.c
index e3ea3f0..12f357d 100644
--- a/src/cairo-xlib-render-compositor.c
+++ b/src/cairo-xlib-render-compositor.c
@@ -246,7 +246,7 @@ draw_image_boxes (void *_dst,
{
cairo_xlib_surface_t *dst = _dst;
struct _cairo_boxes_chunk *chunk;
- cairo_image_surface_t *shm;
+ cairo_image_surface_t *shm = NULL;
cairo_int_status_t status;
int i;
@@ -260,7 +260,6 @@ draw_image_boxes (void *_dst,
goto draw_image_boxes;
}
- shm = NULL;
if (boxes_cover_surface (boxes, dst))
shm = (cairo_image_surface_t *) _cairo_xlib_surface_get_shm (dst, TRUE);
if (shm) {
More information about the cairo-commit
mailing list