diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-11-21 00:23:13 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-11-21 00:23:13 +0100 |
commit | b2a3d493e18261b3059d17e8aa38dfa6df5a82cc (patch) | |
tree | efeb16af3b0036949f5084871a50f45ea42b859d /FICS | |
parent | 7d1425bd000638c2d2fcea2abbaca7f9f095fc83 (diff) |
check_news: initialization
Diffstat (limited to 'FICS')
-rw-r--r-- | FICS/command.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/FICS/command.c b/FICS/command.c index 0338b7d..872c92c 100644 --- a/FICS/command.c +++ b/FICS/command.c @@ -733,13 +733,13 @@ rscan_news(FILE *fp, int p, int lc) PRIVATE void check_news(int p, int admin) { - FILE *fp; - char count[10]; - char filename[MAX_FILENAME_SIZE]; - char junk[MAX_LINE_SIZE]; - char *junkp; - long int lval; - time_t crtime; + FILE *fp = NULL; + char count[10] = { '\0' }; + char filename[MAX_FILENAME_SIZE] = { '\0' }; + char junk[MAX_LINE_SIZE] = { '\0' }; + char *junkp = NULL; + long int lval = 0; + time_t crtime = 0; time_t lc = player_lastconnect(p); if (admin) { |