]> granicus.if.org Git - graphviz/commitdiff
Guarantee variable is initialized.
authorerg <devnull@localhost>
Thu, 18 Jun 2009 14:37:47 +0000 (14:37 +0000)
committererg <devnull@localhost>
Thu, 18 Jun 2009 14:37:47 +0000 (14:37 +0000)
lib/neatogen/multispline.c

index 4a6179ca6ce0cda9d3e3bbfecc0833b64cf27a10..0230d7d7bf803b701fd169955e0c62ce301dd350 100644 (file)
@@ -606,7 +606,7 @@ static tgraph *mkTriGraph(surface_t * sf, int maxv, pointf * pts)
        edgei += degT(sf->neigh + 3 * i) + 1;
     }
     /* initialize variable nodes */
-    np++;
+    np = g->nodes + i;
     np->ne = 0;
     np->edges = edgei;
     np++;