diff options
author | Mathieu Duponchelle <mathieu@centricular.com> | 2018-05-30 17:59:18 +0200 |
---|---|---|
committer | Uli Schlachter <psychon@znc.in> | 2020-07-18 19:43:43 +0000 |
commit | c4fd00c2c4111dfbf1aeb81ed04de4bf6e5efc9f (patch) | |
tree | 6a1cbd86b1dc15e66cd43fdef99691263f77d493 /src/cairo-script-surface.c | |
parent | bfa00bc3d7d8754bce5f115ac2280c42e6447ba0 (diff) | |
download | cairo-c4fd00c2c4111dfbf1aeb81ed04de4bf6e5efc9f.tar.gz |
script-surface: Fix unitialized variable compiler warning
gcc doesn't warn about this because status is potentially
initialized in a loop.
Diffstat (limited to 'src/cairo-script-surface.c')
-rw-r--r-- | src/cairo-script-surface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-script-surface.c b/src/cairo-script-surface.c index c31900aa2..4d7778b99 100644 --- a/src/cairo-script-surface.c +++ b/src/cairo-script-surface.c @@ -1839,7 +1839,7 @@ _emit_path_boxes (cairo_script_surface_t *surface, { cairo_script_context_t *ctx = to_context (surface); cairo_path_fixed_iter_t iter; - cairo_status_t status; + cairo_status_t status = CAIRO_STATUS_SUCCESS; struct _cairo_boxes_chunk *chunk; cairo_boxes_t boxes; cairo_box_t box; |