summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2008-11-13 12:11:12 +0200
committerChris Wilson <chris@chris-wilson.co.uk>2009-01-05 14:19:42 +0000
commita5c1cdf2b030959309e1645bd115f058f1367296 (patch)
treeb629b85e458473531693a7f45de3681965eaad19 /src
parentf60da9a379890a3a4cd74cdad48e73c22cb74160 (diff)
[clip] Fix uninitialised status return in _cairo_clip_intersect_mask() for empty extents.
This fixes the clip-all test case crashing for me.
Diffstat (limited to 'src')
-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 8a0d4db1..b00ca399 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;