From a585819bc68e041f712addb88c81255b9283c538 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Sun, 25 Oct 2009 23:37:48 -0700 Subject: [PATCH] unguarded debug printf. added the appropiate if statement --- parser.l | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/parser.l b/parser.l index 7e42f8a..bfa1a17 100755 --- a/parser.l +++ b/parser.l @@ -706,7 +706,10 @@ extern void CopyBoard P((Board to, Board from)); ff = initialRights[5]; ft = initialRights[4]; } - fprintf(debugFP, "Parser FRC long %d %d\n", ff, ft); + if (appData.debugMode) + { + fprintf(debugFP, "Parser FRC long %d %d\n", ff, ft); + }; if(ff < 0 || ft < 0) return 0; } sprintf(currentMoveString, "%c%c%c%c",ff+AAA,rf+ONE,ft+AAA,rt+ONE); -- 1.7.0.4