From: Matthew Fernandez Date: Sat, 24 Apr 2021 03:02:44 +0000 (-0700) Subject: anticipate failure from addPEdges X-Git-Tag: 2.47.2~13^2~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=11e7db720e64a6b6f4aa075b8c193f2fd0193948;p=graphviz anticipate failure from addPEdges Related to #1801. --- diff --git a/lib/ortho/ortho.c b/lib/ortho/ortho.c index 13f01bbce..19d1a937c 100644 --- a/lib/ortho/ortho.c +++ b/lib/ortho/ortho.c @@ -1075,7 +1075,9 @@ add_p_edges (Dt_t* chans, maze* mp) for (l1 = dtflatten (chans); l1; l1 = dtlink(chans,l1)) { lp = ((chanItem*)l1)->chans; for (l2 = dtflatten (lp); l2; l2 = dtlink(lp,l2)) { - addPEdges ((channel*)l2, mp); + if (addPEdges((channel*)l2, mp) != 0) { + return -1; + } } }