From: Matthew Fernandez Date: Sat, 24 Apr 2021 02:58:51 +0000 (-0700) Subject: anticipate failure from add_edges_in_G X-Git-Tag: 2.47.2~13^2~29 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e76117cd3fa2572cd89752d671d1c19d115723d8;p=graphviz anticipate failure from add_edges_in_G Related to #1801. --- diff --git a/lib/ortho/ortho.c b/lib/ortho/ortho.c index 2c3746b3f..0b847acc0 100644 --- a/lib/ortho/ortho.c +++ b/lib/ortho/ortho.c @@ -780,7 +780,9 @@ add_np_edges (Dt_t* chans) for (l2 = dtflatten (lp); l2; l2 = dtlink(lp,l2)) { cp = (channel*)l2; if (cp->cnt) - add_edges_in_G(cp); + if (add_edges_in_G(cp)) { + return -1; + } } }