aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-11-21 00:23:13 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2024-11-21 00:23:13 +0100
commitb2a3d493e18261b3059d17e8aa38dfa6df5a82cc (patch)
treeefeb16af3b0036949f5084871a50f45ea42b859d
parent7d1425bd000638c2d2fcea2abbaca7f9f095fc83 (diff)
check_news: initialization
-rw-r--r--FICS/command.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/FICS/command.c b/FICS/command.c
index 0338b7d..872c92c 100644
--- a/FICS/command.c
+++ b/FICS/command.c
@@ -733,13 +733,13 @@ rscan_news(FILE *fp, int p, int lc)
PRIVATE void
check_news(int p, int admin)
{
- FILE *fp;
- char count[10];
- char filename[MAX_FILENAME_SIZE];
- char junk[MAX_LINE_SIZE];
- char *junkp;
- long int lval;
- time_t crtime;
+ FILE *fp = NULL;
+ char count[10] = { '\0' };
+ char filename[MAX_FILENAME_SIZE] = { '\0' };
+ char junk[MAX_LINE_SIZE] = { '\0' };
+ char *junkp = NULL;
+ long int lval = 0;
+ time_t crtime = 0;
time_t lc = player_lastconnect(p);
if (admin) {