From: erg Date: Thu, 18 Jun 2009 14:37:47 +0000 (+0000) Subject: Guarantee variable is initialized. X-Git-Tag: LAST_LIBGRAPH~32^2~1908 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f29f8f75ad4229f3100c46c53bb4a5d446662f81;p=graphviz Guarantee variable is initialized. --- diff --git a/lib/neatogen/multispline.c b/lib/neatogen/multispline.c index 4a6179ca6..0230d7d7b 100644 --- a/lib/neatogen/multispline.c +++ b/lib/neatogen/multispline.c @@ -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++;