The vatiable ptc was used uninitialized when the default game description
at the start of the ini file was used in response to LoadGame(NULL),
leading to printing of a spurious setup command with garbage piece-to-char
table, which would wreck the initial setup of XBoard when it started with
legality testing off.
\r
\r
\r
+\r
+\r
K=I;\r
cnt = D(s,-I,I,Q,O,LL|4*S,3);\r
#ifdef SHATRANJ\r
\r
void LoadGame(char *name)\r
{\r
- int i, j, ptc, count=0; char c, buf[80], pieceToChar[80], parent[80];\r
+ int i, j, ptc=0, count=0; char c, buf[80], pieceToChar[80], parent[80];\r
static int currentVariant;\r
FILE *f;\r
\r