aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/makerank.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-11-27 04:00:52 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2024-11-27 04:00:52 +0100
commit61340a99b0cdb37a3d200b90ee2b061ebb7e118c (patch)
tree79e3f0d5f27ffdccdc2b17917cf7c14f45743130 /FICS/makerank.c
parent156b1c7491fe381ed03874784b6755256a45ba39 (diff)
GetPlayerInfo: initialization
Diffstat (limited to 'FICS/makerank.c')
-rw-r--r--FICS/makerank.c8
1 files 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;