aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/gamedb.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2026-04-27 23:04:27 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2026-04-27 23:04:27 +0200
commit43b9a36537cb5f4515e4ba287ecd5f2f97704f8a (patch)
tree22efd63d1f7a22121c9f07f70170f6c7fb0e4d2a /FICS/gamedb.c
parent8139d90d0d1602ddd5b7cc400f986eb9f880eac0 (diff)
game_write_complete: moved call to close()
Diffstat (limited to 'FICS/gamedb.c')
-rw-r--r--FICS/gamedb.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/FICS/gamedb.c b/FICS/gamedb.c
index 30e15e4..884da2e 100644
--- a/FICS/gamedb.c
+++ b/FICS/gamedb.c
@@ -2295,10 +2295,11 @@ game_write_complete(int g, int isDraw, char *EndSymbol)
(void) fprintf(stderr, "Trouble writing history file "
"%s\n",
fname);
+ if (close(fd) != 0) {
+ warn("%s: error closing file descriptor",
+ __func__);
+ }
}
-
- if (close(fd) != 0)
- warn("%s: error closing file descriptor", __func__);
}
msnprintf(fname, sizeof fname, "%s/player_data/%c/%s.%s",