From 61340a99b0cdb37a3d200b90ee2b061ebb7e118c Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Wed, 27 Nov 2024 04:00:52 +0100 Subject: GetPlayerInfo: initialization --- FICS/makerank.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/FICS/makerank.c b/FICS/makerank.c index aed86fa..70fe7ea 100644 --- a/FICS/makerank.c +++ b/FICS/makerank.c @@ -24,10 +24,10 @@ static int rtype; static int GetPlayerInfo(char *fileName, ENTRY *e) { - FILE *fp; - char NameWithCase[30]; - char field[20]; - char line[100]; + FILE *fp = NULL; + char NameWithCase[30] = { '\0' }; + char field[20] = { '\0' }; + char line[100] = { '\0' }; int done = 0; e->computer = 0; -- cgit v1.2.3