From: Yann Dirson Date: Sat, 19 Oct 2013 20:22:02 +0000 (+0200) Subject: Fixed minor regression in makepatter. X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=485ee905dd57ee67179c013ccd113935f5d6667f;p=gnushogi.git Fixed minor regression in makepatter. In 6cdb4afe21c8d0eb740a6a22a02a0adf922fddfc, I messed up a conditional causing an error message to be written even when we did find a pattern file. --- diff --git a/gnushogi/makepattern.c b/gnushogi/makepattern.c index 9b57925..067c758 100644 --- a/gnushogi/makepattern.c +++ b/gnushogi/makepattern.c @@ -232,10 +232,10 @@ ReadOpeningSequences (short *pindex) ShowMessage(s); fclose(fd); + } else { + sprintf(s, "no pattern file '%s'", patternfile); + ShowMessage(s); } - - sprintf(s, "no pattern file '%s'", patternfile); - ShowMessage(s); }