From 14a7311025739955079089d5e682617b794796b8 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Mon, 2 Dec 2024 14:01:38 +0100 Subject: player_read: initialization --- FICS/playerdb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FICS/playerdb.c b/FICS/playerdb.c index 04b8047..59f7438 100644 --- a/FICS/playerdb.c +++ b/FICS/playerdb.c @@ -930,11 +930,11 @@ got_attr_value_player(int p, char *attr, char *value, FILE *fp, char *file) PUBLIC int player_read(int p, char *name) { - FILE *fp; + FILE *fp = NULL; char *attr, *value; char fname[MAX_FILENAME_SIZE] = { '\0' }; char line[MAX_LINE_SIZE] = { '\0' }; - int len; + int len = 0; int version = 0; parray[p].login = stolower(xstrdup(name)); -- cgit v1.2.3