From: Matthew Fernandez Date: Sat, 24 Apr 2021 03:06:51 +0000 (-0700) Subject: anticipate failure from decide_point X-Git-Tag: 2.47.2~13^2~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1be1bab501e0e398b24020810f541ac1adca04a0;p=graphviz anticipate failure from decide_point Related to #1801. --- diff --git a/lib/ortho/ortho.c b/lib/ortho/ortho.c index 81d1e61d1..becbf37a0 100644 --- a/lib/ortho/ortho.c +++ b/lib/ortho/ortho.c @@ -1028,10 +1028,14 @@ addPEdges (channel* cp, maze* mp) dir = 1; } - decide_point(&p, segs[i], segs[j], 0, dir); + if (decide_point(&p, segs[i], segs[j], 0, dir) != 0) { + return -1; + } hops.a = p.a; prec1 = p.b; - decide_point(&p, segs[i], segs[j], 1, 1-dir); + if (decide_point(&p, segs[i], segs[j], 1, 1-dir) != 0) { + return -1; + } hops.b = p.a; prec2 = p.b;