From f101f95a706f8aca396a60e633d870655f77236e Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sun, 7 Jul 2024 15:53:37 +0200 Subject: Set to zero --- FICS/ratings.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/FICS/ratings.c b/FICS/ratings.c index 1634195..3cd8d85 100644 --- a/FICS/ratings.c +++ b/FICS/ratings.c @@ -345,6 +345,8 @@ load_ratings(void) for (int i = 0; i < MAXHIST; i++) { int ret, errno_save; + sHist[i] = bHist[i] = wHist[i] = lHist[i] = 0; + errno = 0; ret = fscanf(fp, "%d %d %d %d", &sHist[i], &bHist[i], &wHist[i], &lHist[i]); -- cgit v1.2.3