From: erg Date: Mon, 21 Jul 2008 18:49:53 +0000 (+0000) Subject: Fix bug in return value of ccomps X-Git-Tag: LAST_LIBGRAPH~32^2~3831 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1c2e37a3675bec4cf09f5aec78271a73feef7773;p=graphviz Fix bug in return value of ccomps --- diff --git a/cmd/tools/ccomps.c b/cmd/tools/ccomps.c index add476752..e38a6f938 100644 --- a/cmd/tools/ccomps.c +++ b/cmd/tools/ccomps.c @@ -779,7 +779,7 @@ static int process(Agraph_t * g) if (verbose) fprintf(stderr, " %7d nodes %7d edges %7ld components %s\n", agnnodes(g), agnedges(g), c_cnt, agnameof(g)); - return (c_cnt ? 1 : 0); + return (c_cnt > 1); } #ifdef USE_CGRAPH