commit 34cf4283fdf3a6de93ed296dd522a0a1de6fa601 from: Markus Uhlin date: Mon May 20 08:23:28 2024 UTC Fixed clang warnings commit - 6f65cec4dbbae1655a2f3337ac5350f2338b18d1 commit + 34cf4283fdf3a6de93ed296dd522a0a1de6fa601 blob - f37cf3d7e407bbfed06957f5aa7c429c10f90ec6 blob + 9168ac4ad01ca9482076c392e408322f597a94eb --- FICS/ratings.c +++ FICS/ratings.c @@ -1531,6 +1531,7 @@ PositionFilePtr(FILE *fp, int count, int *last, int *n 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, ch 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 {