[cairo-commit] cairo/src cairo_gstate.c,1.88,1.89
Carl Worth
commit at pdx.freedesktop.org
Tue Mar 1 14:50:59 PST 2005
Committed by: cworth
Update of /cvs/cairo/cairo/src
In directory gabe:/tmp/cvs-serv28032/src
Modified Files:
cairo_gstate.c
Log Message:
* src/cairo_gstate.c (_cairo_gstate_show_surface): Fix
uninitialized value for status, (reported by Manish Singh).
Index: cairo_gstate.c
===================================================================
RCS file: /cvs/cairo/cairo/src/cairo_gstate.c,v
retrieving revision 1.88
retrieving revision 1.89
diff -u -d -r1.88 -r1.89
--- cairo_gstate.c 27 Feb 2005 19:21:39 -0000 1.88
+++ cairo_gstate.c 1 Mar 2005 22:50:57 -0000 1.89
@@ -1996,7 +1996,7 @@
*
*/
- cairo_status_t status;
+ cairo_status_t status = CAIRO_STATUS_SUCCESS;
cairo_matrix_t image_to_user, image_to_device;
double device_x, device_y;
double device_width, device_height;
@@ -2024,7 +2024,7 @@
pattern_extents.p2.x = _cairo_fixed_from_double (device_x + device_width);
pattern_extents.p2.y = _cairo_fixed_from_double (device_y + device_height);
_cairo_box_round_to_rectangle (&pattern_extents, &extents);
-
+
if (gstate->clip.surface)
{
_cairo_rectangle_intersect (&extents, &gstate->clip.rect);
More information about the cairo-commit
mailing list