aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-11-19 21:12:06 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2024-11-19 21:12:06 +0100
commit75a876b3cb2ef61b057bc8989d527fe9bdf7f7c8 (patch)
tree477b5d20d855265c15fa8eead22429b607df8274
parentef5fdff8f8fdb3da3fa73463afebaf69c3e1b0ad (diff)
plogins: initialization
-rw-r--r--FICS/comproc.c10
1 files 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");