[cairo-commit] src/cairo-clip.c
M. Joonas Pihlaja
joonas at kemper.freedesktop.org
Thu Nov 13 03:28:20 PST 2008
src/cairo-clip.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit efa9e1088cbf1b5331cc0bab3348520f3b91ae4b
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 5bbffd7..726896e 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