diff options
| -rw-r--r-- | FICS/obsproc.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/FICS/obsproc.c b/FICS/obsproc.c index eeceffc..d48d25c 100644 --- a/FICS/obsproc.c +++ b/FICS/obsproc.c @@ -727,11 +727,14 @@ old_mail_moves(int p, int mail, param_list param) if (sscanf(ptmp, "%d", &count) != 1) { warnx("%s: sscanf() error", __func__); - fclose(fp); + (void) fclose(fp); return COM_FAILED; } - fclose(fp); + if (fclose(fp) != 0) { + warn("%s: error closing file pointer", __func__); + return COM_FAILED; + } pprintf(p, "Last game for %s was history game %d.\n", parray[p1].name, count); |
