diff options
| -rw-r--r-- | FICS/playerdb.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/FICS/playerdb.c b/FICS/playerdb.c index 40f4e79..93e8255 100644 --- a/FICS/playerdb.c +++ b/FICS/playerdb.c @@ -2870,7 +2870,10 @@ LoadMsgRange(int p, int start, int end, textlist **Head) nKill++; } - fclose(fp); + if (fclose(fp) != 0) { + warn("%s: error closing file pointer", __func__); + return -1; + } if (start < 0) { if (n <= -start) |
