diff --git a/src/cairo-path-fixed.c b/src/cairo-path-fixed.c index 5b2bcbef6..812728bc4 100644 --- a/src/cairo-path-fixed.c +++ b/src/cairo-path-fixed.c @@ -375,8 +375,7 @@ _cairo_path_fixed_last_op (cairo_path_fixed_t *path) cairo_path_buf_t *buf; buf = cairo_path_tail (path); - if (buf->num_ops == 0) - return -1; + assert (buf->num_ops != 0); return buf->op[buf->num_ops - 1]; }