From: Arun Persaud Date: Mon, 26 Oct 2009 06:37:48 +0000 (-0700) Subject: unguarded debug printf. added the appropiate if statement X-Git-Tag: v4.4.1~21 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=a585819bc68e041f712addb88c81255b9283c538;p=xboard.git unguarded debug printf. added the appropiate if statement --- 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);