]> granicus.if.org Git - graphviz/commitdiff
anticipate failure from add_edges_in_G
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 24 Apr 2021 02:58:51 +0000 (19:58 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 14 May 2021 00:03:36 +0000 (17:03 -0700)
Related to #1801.

lib/ortho/ortho.c

index 2c3746b3f22e8ce5e31a9f90a9db7dac68625bbf..0b847acc0163acd164fc991d08abbf42e8e3efe3 100644 (file)
@@ -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;
+               }
        }
     }