From: Emden R. Gansner Date: Fri, 23 Aug 2013 01:56:20 +0000 (-0400) Subject: Fix bug 2327 X-Git-Tag: LAST_LIBGRAPH~32^2~61 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0c3535252d1353eb5ed9b2c461e436131d00b813;p=graphviz Fix bug 2327 --- diff --git a/cmd/tools/gvpack.c b/cmd/tools/gvpack.c index b085510dc..52f16ed96 100644 --- a/cmd/tools/gvpack.c +++ b/cmd/tools/gvpack.c @@ -899,6 +899,10 @@ static Agraph_t **readGraphs(int *cp, GVC_t* gvc) while ((g = nextGraph(&ig)) != 0) { if (verbose) fprintf(stderr, "Reading graph %s\n", agnameof(g)); + if (agnnodes(g) == 0) { + fprintf(stderr, "Graph %s is empty - ignoring\n", agnameof(g)); + continue; + } if (cnt >= sz) { sz += nGraphs; gs = ALLOC(sz, gs, Agraph_t *);