]> granicus.if.org Git - graphviz/commitdiff
add "assert (n >= 4);" to prevent macOSx checker from reporting divide_by_zero possib...
authorellson <devnull@localhost>
Sat, 28 Feb 2009 13:14:34 +0000 (13:14 +0000)
committerellson <devnull@localhost>
Sat, 28 Feb 2009 13:14:34 +0000 (13:14 +0000)
plugin/core/gvrender_core_fig.c

index f51139b43b3bca4f35bccb74514d773c1aa9e651..890ec06a5ea1557355a9b16f15ae68075fa3d4af 100644 (file)
@@ -345,6 +345,8 @@ static void fig_bezier(GVJ_t * job, pointf * A, int n, int arrow_at_start,
     int npoints = n;
     int i;
 
+    assert (n >= 4);
+
     pointf pf, V[4];
     point p;
     int j, step;