aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2026-03-09 20:04:42 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2026-03-09 20:04:42 +0100
commit0eeef609629d1de8f9571d891c973eed666740a6 (patch)
treec0814c0145397d398a5e353583c2d9f98df6c655
parent0eb0a61dcc2c1ce9d8ec6bed1c51f28f8762b27b (diff)
UpdateRank: initialization
-rw-r--r--FICS/ratings.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/FICS/ratings.c b/FICS/ratings.c
index 0e7f012..b478e80 100644
--- a/FICS/ratings.c
+++ b/FICS/ratings.c
@@ -1506,11 +1506,11 @@ GetRankFileName(char *out, const size_t size, int type)
PUBLIC void
UpdateRank(int type, char *addName, statistics *sNew, char *delName)
{
- FILE *fp;
- FILE *fptemp;
- char RankFile[MAX_FILENAME_SIZE];
- char TmpRankFile[MAX_FILENAME_SIZE];
- char command[MAX_STRING_LENGTH];
+ FILE *fp = NULL;
+ FILE *fptemp = NULL;
+ char RankFile[MAX_FILENAME_SIZE] = { '\0' };
+ char TmpRankFile[MAX_FILENAME_SIZE] = { '\0' };
+ char command[MAX_STRING_LENGTH] = { '\0' };
char line[MAX_RANK_LINE] = { '\0' };
char login[MAX_LOGIN_NAME] = { '\0' };
int comp = 0;