commit 1ccc35af5b63adac57b344094de698d5b9ca7983 Author: José Dapena Paz Date: Fri Jun 15 11:10:46 2012 +0200 image: init status in composite_glyphs On running gtk3-demo on wayland, I am getting an assert caused by cairo_status_t in composite_glyphs being used without it being initialized. It gets a random value bigger than CAIRO_STATUS_LAST_STATUS. Reported-by: José Dapena Paz Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=51104 Signed-off-by: José Dapena Paz diff --git a/src/cairo-image-compositor.c b/src/cairo-image-compositor.c index a55dade..b72a359 100644 --- a/src/cairo-image-compositor.c +++ b/src/cairo-image-compositor.c @@ -795,7 +795,7 @@ composite_glyphs (void *_dst, int dst_y, cairo_composite_glyphs_info_t *info) { - cairo_status_t status; + cairo_status_t status = CAIRO_STATUS_SUCCESS; pixman_glyph_cache_t *glyph_cache; pixman_glyph_t pglyphs_stack[CAIRO_STACK_ARRAY_LENGTH (pixman_glyph_t)]; pixman_glyph_t *pglyphs = pglyphs_stack;