diff options
Diffstat (limited to 'FICS/board.c')
| -rw-r--r-- | FICS/board.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/FICS/board.c b/FICS/board.c index 40637e0..72fb811 100644 --- a/FICS/board.c +++ b/FICS/board.c @@ -1177,7 +1177,8 @@ board_read_file(char *category, char *gname, game_state_t *gs) } } // while - fclose(fp); + if (fclose(fp) != 0) + warn("%s: error: fclose", __func__); return 0; } @@ -1376,7 +1377,8 @@ wild_update(int style) } mfprintf(fp, "\n"); - fclose(fp); + if (fclose(fp) != 0) + warn("%s: error: fclose", __func__); } } |
