diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-11-19 20:47:11 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-11-19 20:47:11 +0100 |
commit | da93d9fc9fe03ca5fcc4b17128096bea31743f18 (patch) | |
tree | 71e08a61bb6a6403a740f1dcad9801454c999a60 /FICS/comproc.c | |
parent | ee60d936a5479744651873ed4870e3b72a40e06f (diff) |
com_news: initialization
Diffstat (limited to 'FICS/comproc.c')
-rw-r--r-- | FICS/comproc.c | 8 |
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); |