diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-11-19 21:12:06 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-11-19 21:12:06 +0100 |
commit | 75a876b3cb2ef61b057bc8989d527fe9bdf7f7c8 (patch) | |
tree | 477b5d20d855265c15fa8eead22429b607df8274 /FICS | |
parent | ef5fdff8f8fdb3da3fa73463afebaf69c3e1b0ad (diff) |
plogins: initialization
Diffstat (limited to 'FICS')
-rw-r--r-- | FICS/comproc.c | 10 |
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"); |