From cebb1eef431a38c7c3a96ae60a5bee188f41dc0b Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 31 Mar 2008 19:09:21 +0100 Subject: [PATCH] [cairo-svg-surface] Missing status check. Check and, if necessary, propagate the error status - do not allow the status to be overwritten, potentially masking the original error. --- src/cairo-svg-surface.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cairo-svg-surface.c b/src/cairo-svg-surface.c index c218bc5d4..11c8f43ed 100644 --- a/src/cairo-svg-surface.c +++ b/src/cairo-svg-surface.c @@ -2109,6 +2109,9 @@ _cairo_svg_surface_stroke (void *abstract_dst, _cairo_output_stream_printf (surface->xml_node, "xml_node, surface, op, source, stroke_style, ctm_inverse); + if (status) + return status; + _cairo_output_stream_printf (surface->xml_node, "\" "); status = _cairo_svg_surface_emit_path (surface->xml_node, path, ctm_inverse);