summaryrefslogtreecommitdiff
authorM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2008-11-13 10:11:12 (GMT)
committer M Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2008-11-13 11:10:18 (GMT)
commitefa9e1088cbf1b5331cc0bab3348520f3b91ae4b (patch) (side-by-side diff)
tree475f3e92efac08100bcd3024a926138a58524d6d
parent279a7cef349cf5aa87cdeacb9424413f51117fe8 (diff)
downloadcairo-efa9e1088cbf1b5331cc0bab3348520f3b91ae4b.zip
cairo-efa9e1088cbf1b5331cc0bab3348520f3b91ae4b.tar.gz
[clip] Fix uninitialised status return in _cairo_clip_intersect_mask() for empty extents.
This fixes the clip-all test case crashing for me.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--src/cairo-clip.c2
1 files changed, 1 insertions, 1 deletions
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;