]> granicus.if.org Git - graphviz/commitdiff
return NULL from deriveGraph to indicate failure
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 3 Apr 2021 19:34:52 +0000 (12:34 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 10 Apr 2021 01:26:32 +0000 (18:26 -0700)
Related to #1801.

lib/fdpgen/layout.c

index 46897b0bd9164504ce96bca5ec9a4867a7f83dfb..b491d6410b68f66731adef90cba880f9f33eedb7 100644 (file)
@@ -467,7 +467,7 @@ static graph_t *deriveGraph(graph_t * g, layout_info * infop)
        if (!DNODE(n)) {
            if (PARENT(n) && PARENT(n) != GPARENT(g)) {
                agerr (AGERR, "node \"%s\" is contained in two non-comparable clusters \"%s\" and \"%s\"\n", agnameof(n), agnameof(g), agnameof(PARENT(n)));
-               longjmp (jbuf, 1);
+               return NULL;
            }
            PARENT(n) = g;
            if (IS_CLUST_NODE(n))