projects
/
fairymax.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
183d277
)
Fix in-file EOF problem
author
H.G. Muller
<h.g.muller@hccnet.nl>
Sat, 4 Dec 2010 12:41:31 +0000 (13:41 +0100)
committer
H.G. Muller
<h.g.muller@hccnet.nl>
Sat, 4 Dec 2010 12:41:31 +0000 (13:41 +0100)
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
patch
|
blob
|
history
diff --git
a/fairymax.c
b/fairymax.c
index
d72a13b
..
70eac81
100644
(file)
--- a/
fairymax.c
+++ b/
fairymax.c
@@
-412,7
+412,7
@@
void CopyBoard(int s)
\r
void PrintVariants(int combo)
\r
{
\r
- int i, j, count=0, total=0; char c, buf[80];
\r
+ int i, j, count=0, total=0; char c=EOF+1, buf[80];
\r
FILE *f;
\r
\r
f = fopen(INI_FILE, "r");
\r