aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-11-28 23:20:59 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2024-11-28 23:20:59 +0100
commit11c6dd9df3dc897c86e31867d5749466fd7c21d5 (patch)
tree65a21a797505d3ea604ec88e0e71a6fb3f40094d
parentbf0daae7f32422349d3365a428cf16cb700fdaef (diff)
Initialization
-rw-r--r--FICS/makerank.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/FICS/makerank.c b/FICS/makerank.c
index daece45..d851c53 100644
--- a/FICS/makerank.c
+++ b/FICS/makerank.c
@@ -209,9 +209,9 @@ LoadEntries(void)
static int
SetComputers(int n)
{
- FILE *fpComp;
- char comp[30];
- char line[100];
+ FILE *fpComp = NULL;
+ char comp[30] = { '\0' };
+ char line[100] = { '\0' };
int i = 0;
if (snprintf(line, sizeof line, "sort -f %s", COMPUTER_FILE) >=