From 75a876b3cb2ef61b057bc8989d527fe9bdf7f7c8 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Tue, 19 Nov 2024 21:12:06 +0100 Subject: plogins: initialization --- FICS/comproc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/FICS/comproc.c b/FICS/comproc.c index ed2cb68..d6580b8 100644 --- a/FICS/comproc.c +++ b/FICS/comproc.c @@ -732,12 +732,12 @@ com_date(int p, param_list param) PRIVATE int plogins(int p, char *fname) { - FILE *fp; - char ipstr[20]; - char loginName[MAX_LOGIN_NAME + 1]; + FILE *fp = NULL; + char ipstr[20] = { '\0' }; + char loginName[MAX_LOGIN_NAME + 1] = { '\0' }; int inout, registered; - long int lval; - time_t tval; + long int lval = 0; + time_t tval = 0; if ((fp = fopen(fname, "r")) == NULL) { pprintf(p, "Sorry, no login information available.\n"); -- cgit v1.2.3