aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/ratings.c
diff options
context:
space:
mode:
Diffstat (limited to 'FICS/ratings.c')
-rw-r--r--FICS/ratings.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/FICS/ratings.c b/FICS/ratings.c
index 48e7e5a..456bfa2 100644
--- a/FICS/ratings.c
+++ b/FICS/ratings.c
@@ -1488,7 +1488,17 @@ UpdateRank(int type, char *addName, statistics *sNew, char *delName)
char login[MAX_LOGIN_NAME] = { '\0' };
int comp = 0;
int fd = -1;
- statistics sCur;
+ statistics sCur = {
+ .sterr = 0.0,
+ .num = 0,
+ .win = 0,
+ .los = 0,
+ .dra = 0,
+ .rating = 0,
+ .best = 0,
+ .ltime = 0,
+ .whenbest = 0,
+ };
if (GetRankFileName(RankFile, sizeof RankFile, type) < 0)
return;