diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-12-02 14:01:38 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-12-02 14:01:38 +0100 |
commit | 14a7311025739955079089d5e682617b794796b8 (patch) | |
tree | 543d5580c290b0701161948633d27973ceb18041 /FICS/playerdb.c | |
parent | b8df956411913ecb1488800742a9cc60baf275c3 (diff) |
player_read: initialization
Diffstat (limited to 'FICS/playerdb.c')
-rw-r--r-- | FICS/playerdb.c | 4 |
1 files 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)); |