unguarded debug printf. added the appropiate if statement
authorArun Persaud <arun@nubati.net>
Mon, 26 Oct 2009 06:37:48 +0000 (23:37 -0700)
committerArun Persaud <arun@nubati.net>
Mon, 26 Oct 2009 06:37:48 +0000 (23:37 -0700)
parser.l

index 7e42f8a..bfa1a17 100755 (executable)
--- a/parser.l
+++ b/parser.l
@@ -706,7 +706,10 @@ extern void CopyBoard P((Board to, Board from));
             ff = initialRights[5];\r
             ft = initialRights[4];\r
         }\r
-        fprintf(debugFP, "Parser FRC long %d %d\n", ff, ft);\r
+        if (appData.debugMode) \r
+        {\r
+          fprintf(debugFP, "Parser FRC long %d %d\n", ff, ft);\r
+        };\r
         if(ff < 0 || ft < 0) return 0;\r
     }\r
     sprintf(currentMoveString, "%c%c%c%c",ff+AAA,rf+ONE,ft+AAA,rt+ONE);\r