aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-08-04 00:29:06 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-08-04 00:29:06 +0200
commit4019edcc5e23b9be9ba0a6dd33d1c841cbc38ca3 (patch)
tree8ebe11a1c38be527726869235f92e2b4f211f20f /FICS
parent57763f4d46bea3888c2658d725293a960c57963a (diff)
player_read: set 'fname' and 'line' to 0
Diffstat (limited to 'FICS')
-rw-r--r--FICS/playerdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/FICS/playerdb.c b/FICS/playerdb.c
index d9381e1..83bd16a 100644
--- a/FICS/playerdb.c
+++ b/FICS/playerdb.c
@@ -915,8 +915,8 @@ player_read(int p, char *name)
{
FILE *fp;
char *attr, *value;
- char fname[MAX_FILENAME_SIZE];
- char line[MAX_LINE_SIZE];
+ char fname[MAX_FILENAME_SIZE] = { '\0' };
+ char line[MAX_LINE_SIZE] = { '\0' };
int len;
int version = 0;