]> granicus.if.org Git - graphviz/commitdiff
Remove 1 -Wsometimes-uninitialized warning in ortho.c
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 8 Nov 2020 08:38:13 +0000 (09:38 +0100)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sat, 21 Nov 2020 08:17:09 +0000 (09:17 +0100)
lib/ortho/ortho.c

index b626446ec6e7567f1748fc85c721c06c597816ed..e41445dce1818df100fdb0c1be555c88e40edeed 100644 (file)
@@ -1413,6 +1413,10 @@ coordOf (cell* cp, snode* np)
        p.y = (cp->bb.LL.y + cp->bb.UR.y)/2;
        p.x = cp->bb.UR.x;
     }
+    else {
+       agerr (AGERR, "Node not adjacent to cell -- Aborting\n");
+       exit(EXIT_FAILURE);
+    }
     return p;
 }