summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2006-09-21 15:15:02 -0700
committerCarl Worth <cworth@cworth.org>2006-11-02 13:02:03 -0800
commit75b6d21ed5af7bb25d760423f6de2610bbbc24f0 (patch)
tree565e864711e484266feda39e01e95bce6429a406
parent16a08ff1b03a7fc110dc3359f030ea6ff8af03a7 (diff)
Add assert statement so the infinite-join test simply exits rather than looping infinitely.
(cherry picked from 5492a7c7618a747130b844a509fb79b886f1bc54 commit)
-rw-r--r--src/cairo-pen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo-pen.c b/src/cairo-pen.c
index 87de9a419..3d42314c9 100644
--- a/src/cairo-pen.c
+++ b/src/cairo-pen.c
@@ -315,6 +315,8 @@ _cairo_pen_find_active_cw_vertex_index (cairo_pen_t *pen,
break;
}
+ assert (i < pen->num_vertices);
+
*active = i;
return CAIRO_STATUS_SUCCESS;