From: Matthew Fernandez Date: Sun, 22 Nov 2020 05:57:26 +0000 (-0800) Subject: remove an unnecessary intermediate buffer X-Git-Tag: 2.46.1~27^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1da4b0ea694b9ec507e835eeed0c0a25e5bbb0b4;p=graphviz remove an unnecessary intermediate buffer --- diff --git a/lib/fdpgen/layout.c b/lib/fdpgen/layout.c index d52372949..cba556ef8 100644 --- a/lib/fdpgen/layout.c +++ b/lib/fdpgen/layout.c @@ -421,15 +421,14 @@ static graph_t *deriveGraph(graph_t * g, layout_info * infop) graph_t *dg; node_t *dn; graph_t *subg; - char name[100]; bport_t *pp; node_t *n; edge_t *de; int i, id = 0; - sprintf(name, "_dg_%d", infop->gid++); if (Verbose >= 2) - fprintf(stderr, "derive graph %s of %s\n", name, agnameof(g)); + fprintf(stderr, "derive graph _dg_%d of %s\n", infop->gid, agnameof(g)); + infop->gid++; dg = agopen("derived", Agstrictdirected,NIL(Agdisc_t *)); agbindrec(dg, "Agraphinfo_t", sizeof(Agraphinfo_t), TRUE);