aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-03-30 02:11:53 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2024-03-30 02:11:53 +0100
commitfe0901fb83f8f4d699bdf2d6f3f400d64a0c4f34 (patch)
tree37e1d400642068670f36d40a1cc77942dc81670b
parent7d7654025ce933ba38c4e3d6cd3f54c040609f73 (diff)
More initialization
-rw-r--r--FICS/eco.c10
1 files changed, 5 insertions, 5 deletions
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;