graphviz/graphviz-neato_splines.patch

12 lines
261 B
Diff

--- lib/neatogen/neatosplines.c
+++ lib/neatogen/neatosplines.c
@@ -61,6 +61,8 @@
n = n + poly[i]->pn;
}
bar = N_GNEW(n, Pedge_t);
+ if (bar == (Pedge_t *)1)
+ bar = (Pedge_t *)0;
b = 0;
for (i = 0; i < npoly; i++) {
if (i == pp)