diff options
author | Markus Uhlin <markus@nifty-networks.net> | 2024-11-17 21:55:54 +0100 |
---|---|---|
committer | Markus Uhlin <markus@nifty-networks.net> | 2024-11-17 21:55:54 +0100 |
commit | 190e6773c543c8dadece74062418de8e50f9e688 (patch) | |
tree | ba4fd98650589d76edec5a4e7616635ae5d0d64e /FICS/adminproc.c | |
parent | 196316bd38da23d9d7f6ca401fd7c0f979e86769 (diff) |
Initialization
Diffstat (limited to 'FICS/adminproc.c')
-rw-r--r-- | FICS/adminproc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/FICS/adminproc.c b/FICS/adminproc.c index 32746e7..03e59cc 100644 --- a/FICS/adminproc.c +++ b/FICS/adminproc.c @@ -362,14 +362,14 @@ com_canewsf(int p, param_list param) PUBLIC int com_anews(int p, param_list param) { - FILE *fp; - char *junkp; - char count[10]; + 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; msnprintf(filename, sizeof filename, "%s/newadminnews.index", news_dir); |