aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-11-19 20:47:11 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2024-11-19 20:47:11 +0100
commitda93d9fc9fe03ca5fcc4b17128096bea31743f18 (patch)
tree71e08a61bb6a6403a740f1dcad9801454c999a60
parentee60d936a5479744651873ed4870e3b72a40e06f (diff)
com_news: initialization
-rw-r--r--FICS/comproc.c8
1 files 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);