]> granicus.if.org Git - graphviz/commitdiff
ccomps: remove redundant 'fflush'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 12 Mar 2022 19:37:12 +0000 (11:37 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 13 Mar 2022 20:08:55 +0000 (13:08 -0700)
Closing a file already flushes all written data to disk.

cmd/tools/ccomps.c

index 2cb8a207b5c78602f015c14cb15b1009aa6bc7c8..19d80889c2492a4cc4b5a8c9b9283194b18d1f1f 100644 (file)
@@ -401,7 +401,6 @@ static void gwrite(Agraph_t * g)
            perror("ccomps");
        }
        agwrite(g, outf);
-       fflush(outf);
        fclose(outf);
     }
 }