aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--FICS/utils.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/FICS/utils.c b/FICS/utils.c
index 599a4ac..71a2ee5 100644
--- a/FICS/utils.c
+++ b/FICS/utils.c
@@ -967,7 +967,8 @@ truncate_file(const char *file, int lines)
}
}
- fclose(fp);
+ if (fclose(fp) != 0)
+ warn("%s: fclose() error", __func__);
if (trunc) {
int fd;
@@ -989,7 +990,8 @@ truncate_file(const char *file, int lines)
bptr = 0;
}
- fclose(fp);
+ if (fclose(fp) != 0)
+ warn("%s: fclose() error", __func__);
}
return 0;