summaryrefslogtreecommitdiffstats
path: root/color.c
diff options
context:
space:
mode:
Diffstat (limited to 'color.c')
-rw-r--r--color.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/color.c b/color.c
index 8df6a1f..1025c9e 100644
--- a/color.c
+++ b/color.c
@@ -288,6 +288,8 @@ int cfclose(CFILE *cfile) {
if (cfile) {
if (cfile->close) {
ret = fclose(cfile->file);
+ } else if (cfile->file) {
+ ret = fflush(cfile->file);
}
free(cfile);
}