From 11c6dd9df3dc897c86e31867d5749466fd7c21d5 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Thu, 28 Nov 2024 23:20:59 +0100 Subject: Initialization --- FICS/makerank.c | 6 +++--- 1 file 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) >= -- cgit v1.2.3