From a26d7eda90e81fb0ad2e47fcfd47c5bb73eb6b23 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sat, 4 Dec 2010 13:41:31 +0100 Subject: [PATCH] Fix in-file EOF problem Because of use of an uninitialized variable in PrintVariants, some compiles were thinking that there were no game definitions in the fmax.ini file. --- fairymax.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fairymax.c b/fairymax.c index d72a13b..70eac81 100644 --- a/fairymax.c +++ b/fairymax.c @@ -412,7 +412,7 @@ void CopyBoard(int s) void PrintVariants(int combo) { - int i, j, count=0, total=0; char c, buf[80]; + int i, j, count=0, total=0; char c=EOF+1, buf[80]; FILE *f; f = fopen(INI_FILE, "r"); -- 1.7.0.4