diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-05-20 10:23:28 +0200 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-05-20 10:23:28 +0200 |
commit | 34cf4283fdf3a6de93ed296dd522a0a1de6fa601 (patch) | |
tree | 5bf0570bab3befca93087e839bc9b3cb2fa4f9c9 /FICS/ratings.c | |
parent | 6f65cec4dbbae1655a2f3337ac5350f2338b18d1 (diff) |
Fixed clang warnings
Diffstat (limited to 'FICS/ratings.c')
-rw-r--r-- | FICS/ratings.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/FICS/ratings.c b/FICS/ratings.c index f37cf3d..9168ac4 100644 --- a/FICS/ratings.c +++ b/FICS/ratings.c @@ -1531,6 +1531,7 @@ PositionFilePtr(FILE *fp, int count, int *last, int *nTied, int showComp) if (fp == NULL) return; + rating = nGames = is_computer = 0; rewind(fp); for (int i = 1; i < count; i++) { @@ -1559,7 +1560,11 @@ ShowRankEntry(int p, FILE *fp, int count, int comp, char *target, char newLine[MAX_RANK_LINE] = { '\0' }; int rating, findable, nGames, is_comp; - findable = (count > 0 && !feof(fp)); + // XXX + rating = 0; + findable = (count > 0 && !feof(fp)); + nGames = 0; + is_comp = 0; if (findable) { do { |