From b2a3d493e18261b3059d17e8aa38dfa6df5a82cc Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Thu, 21 Nov 2024 00:23:13 +0100 Subject: check_news: initialization --- FICS/command.c | 14 +++++++------- 1 file 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) { -- cgit v1.2.3