]> granicus.if.org Git - graphviz/commitdiff
Fix bug in return value of ccomps
authorerg <devnull@localhost>
Mon, 21 Jul 2008 18:49:53 +0000 (18:49 +0000)
committererg <devnull@localhost>
Mon, 21 Jul 2008 18:49:53 +0000 (18:49 +0000)
cmd/tools/ccomps.c

index add476752e03e1dba28f65a82542320d212855a8..e38a6f93846e7dbacceffd8305050cbd1f3602d1 100644 (file)
@@ -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