From fe0901fb83f8f4d699bdf2d6f3f400d64a0c4f34 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 30 Mar 2024 02:11:53 +0100 Subject: More initialization --- FICS/eco.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'FICS/eco.c') diff --git a/FICS/eco.c b/FICS/eco.c index 3c38445..c25d54c 100644 --- a/FICS/eco.c +++ b/FICS/eco.c @@ -114,10 +114,10 @@ PUBLIC void ECO_init(void) { FILE *fp; - char ECO[4]; + char ECO[4] = {0,0,0,0}; char FENpos[73] = { '\0' }; char filename[1024] = { '\0' }; - char onMove[2]; + char onMove[2] = {0,0}; char tmp[1024] = { '\0' }; char *ptmp = tmp; int i = 0; @@ -180,9 +180,9 @@ NIC_init(void) { FILE *fp; char FENpos[73] = { '\0' }; - char NIC[6]; + char NIC[6] = {0,0,0,0,0,0}; char filename[1024] = { '\0' }; - char onMove[2]; + char onMove[2] = {0,0}; char tmp[1024] = { '\0' }; char *ptmp = tmp; int i = 0; @@ -239,7 +239,7 @@ LONG_init(void) char FENpos[73] = { '\0' }; char LONG[256] = { '\0' }; char filename[1024] = { '\0' }; - char onMove[2]; + char onMove[2] = {0,0}; char tmp[1024] = { '\0' }; char *ptmp = tmp; int i = 0; -- cgit v1.2.3