From: H.G. Muller Date: Sat, 4 Dec 2010 12:41:31 +0000 (+0100) Subject: Fix in-file EOF problem X-Git-Tag: 4.8Q~1 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=a26d7eda90e81fb0ad2e47fcfd47c5bb73eb6b23;p=fairymax.git 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. --- 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");