[cairo-commit] Branch '1.8' - src/cairo-clip.c

Chris Wilson ickle at kemper.freedesktop.org
Mon Jan 5 06:20:44 PST 2009


 src/cairo-clip.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit a5c1cdf2b030959309e1645bd115f058f1367296
Author: M Joonas Pihlaja <jpihlaja at cc.helsinki.fi>
Date:   Thu Nov 13 12:11:12 2008 +0200

    [clip] Fix uninitialised status return in _cairo_clip_intersect_mask() for empty extents.
    
    This fixes the clip-all test case crashing for me.

diff --git a/src/cairo-clip.c b/src/cairo-clip.c
index 8a0d4db..b00ca39 100644
--- a/src/cairo-clip.c
+++ b/src/cairo-clip.c
@@ -423,7 +423,7 @@ _cairo_clip_intersect_mask (cairo_clip_t      *clip,
     cairo_box_t extents;
     cairo_rectangle_int_t surface_rect, target_rect;
     cairo_surface_t *surface = NULL;
-    cairo_status_t status;
+    cairo_status_t status = CAIRO_STATUS_SUCCESS;
 
     if (clip->all_clipped)
 	return CAIRO_STATUS_SUCCESS;


More information about the cairo-commit mailing list