[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnugo-devel] Minor problem
From: |
Portela Fernando |
Subject: |
[gnugo-devel] Minor problem |
Date: |
Wed, 26 May 2004 19:57:31 +0200 |
Hi,
One of Gunnar's last patches introduced closing the GTP dump file.
Unfortunately, MSVC builds dislike closing NULL pointers.
nando
- close a file only if it's been opened.
Index: main.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/interface/main.c,v
retrieving revision 1.100
diff -u -r1.100 main.c
--- main.c 25 May 2004 03:13:47 -0000 1.100
+++ main.c 26 May 2004 17:54:07 -0000
@@ -1365,7 +1365,8 @@
}
play_gtp(gtp_input_FILE, gtp_dump_commands_FILE, orientation);
- fclose(gtp_dump_commands_FILE);
+ if (gtp_dump_commands_FILE)
+ fclose(gtp_dump_commands_FILE);
break;
case MODE_ASCII_EMACS:
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnugo-devel] Minor problem,
Portela Fernando <=