aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/command.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-11-21 00:22:39 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2024-11-21 00:22:39 +0100
commit7d1425bd000638c2d2fcea2abbaca7f9f095fc83 (patch)
tree5bf75eb090710a6e6914965764b70601b9096d4a /FICS/command.c
parent56bfbf4abdc55057ce0f8e214432d7c2d488e719 (diff)
rscan_news: initialization
Diffstat (limited to 'FICS/command.c')
-rw-r--r--FICS/command.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/FICS/command.c b/FICS/command.c
index 5d4f9a0..0338b7d 100644
--- a/FICS/command.c
+++ b/FICS/command.c
@@ -702,11 +702,11 @@ boot_out(int p, int p1)
PUBLIC void
rscan_news(FILE *fp, int p, int lc)
{
- char *junkp;
- char count[10];
- char junk[MAX_LINE_SIZE];
- long int lval;
- time_t crtime;
+ char *junkp = NULL;
+ char count[10] = { '\0' };
+ char junk[MAX_LINE_SIZE] = { '\0' };
+ long int lval = 0;
+ time_t crtime = 0;
fgets(junk, MAX_LINE_SIZE, fp);