From da93d9fc9fe03ca5fcc4b17128096bea31743f18 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Tue, 19 Nov 2024 20:47:11 +0100 Subject: com_news: initialization --- FICS/comproc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/FICS/comproc.c b/FICS/comproc.c index 405a59f..4bb7ec2 100644 --- a/FICS/comproc.c +++ b/FICS/comproc.c @@ -141,14 +141,14 @@ rscan_news2(FILE *fp, int p, int num) PUBLIC int com_news(int p, param_list param) { - FILE *fp; - char *junkp; + FILE *fp = NULL; + char *junkp = NULL; char count[10] = { '\0' }; char filename[MAX_FILENAME_SIZE] = { '\0' }; char junk[MAX_LINE_SIZE] = { '\0' }; int found = 0; - long int lval; - time_t crtime; + long int lval = 0; + time_t crtime = 0; snprintf(filename, sizeof filename, "%s/newnews.index", news_dir); -- cgit v1.2.3