aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-11-17 21:55:54 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2024-11-17 21:55:54 +0100
commit190e6773c543c8dadece74062418de8e50f9e688 (patch)
treeba4fd98650589d76edec5a4e7616635ae5d0d64e
parent196316bd38da23d9d7f6ca401fd7c0f979e86769 (diff)
Initialization
-rw-r--r--FICS/adminproc.c10
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);