diff options
| author | Markus Uhlin <markus@nifty-networks.net> | 2025-11-26 23:59:17 +0100 |
|---|---|---|
| committer | Markus Uhlin <markus@nifty-networks.net> | 2025-11-26 23:59:17 +0100 |
| commit | 2ffe47dbae27450bc859a8df5f3b06ff0f50038f (patch) | |
| tree | 4085fe9a7396ec14b983df3ba730f68010ef3b17 /FICS/ratings.c | |
| parent | fc4866383d1f002ca832dfce8f8abccf9d72bae5 (diff) | |
Fixed potentially uninitialized vars
Diffstat (limited to 'FICS/ratings.c')
| -rw-r--r-- | FICS/ratings.c | 12 |
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; |
