From 2ffe47dbae27450bc859a8df5f3b06ff0f50038f Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Wed, 26 Nov 2025 23:59:17 +0100 Subject: Fixed potentially uninitialized vars --- FICS/ratings.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'FICS/ratings.c') 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; -- cgit v1.2.3