From 34cf4283fdf3a6de93ed296dd522a0a1de6fa601 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Mon, 20 May 2024 10:23:28 +0200 Subject: Fixed clang warnings --- FICS/ratings.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 { -- cgit v1.2.3