commit 43b9a36537cb5f4515e4ba287ecd5f2f97704f8a from: Markus Uhlin date: Mon Apr 27 21:04:27 2026 UTC game_write_complete: moved call to close() commit - 8139d90d0d1602ddd5b7cc400f986eb9f880eac0 commit + 43b9a36537cb5f4515e4ba287ecd5f2f97704f8a blob - 30e15e4d9c494fd5b33218310348e5bdcb045274 blob + 884da2e462b53decaf443f8baad56c2c03e42b2e --- FICS/gamedb.c +++ 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",