diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2017-07-29 17:40:34 +0100 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2017-07-29 17:40:34 +0100 |
commit | 495cb9a0a765ccbc678f55d8bfe699829a214f39 (patch) | |
tree | 1d8f596d5223e2ded61be15fd15dae4a7f8dfc41 | |
parent | 7a1e378466971d26a3f6d3c9437744bc5ffef1eb (diff) |
Fix uninitialized status!
-rw-r--r-- | src/cairo-surface.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cairo-surface.c b/src/cairo-surface.c index c524fe4b3..5436ed960 100644 --- a/src/cairo-surface.c +++ b/src/cairo-surface.c @@ -2530,7 +2530,7 @@ ensure_scaled_glyph (cairo_scaled_font_t *scaled_font, cairo_scaled_glyph_t **scaled_glyph) { int cache_index; - cairo_int_status_t status; + cairo_int_status_t status = CAIRO_INT_STATUS_SUCCESS; cache_index = glyph->index % GLYPH_CACHE_SIZE; *scaled_glyph = glyph_cache[cache_index]; @@ -2561,7 +2561,7 @@ composite_one_color_glyph (cairo_surface_t *surface, cairo_pattern_t *pattern; cairo_matrix_t matrix; - status = CAIRO_STATUS_SUCCESS; + status = CAIRO_INT_STATUS_SUCCESS; glyph_surface = scaled_glyph->color_surface; @@ -2608,7 +2608,7 @@ composite_color_glyphs (cairo_surface_t *surface, memset (glyph_cache, 0, sizeof (glyph_cache)); - status = CAIRO_STATUS_SUCCESS; + status = CAIRO_INT_STATUS_SUCCESS; _cairo_scaled_font_freeze_cache (scaled_font); |