Prevent pat2inc from silently reading gnushogi.pat when requested file is not found.
authorYann Dirson <ydirson@free.fr>
Tue, 17 Dec 2013 20:37:19 +0000 (21:37 +0100)
committerYann Dirson <ydirson@free.fr>
Sun, 12 Jan 2014 14:31:22 +0000 (15:31 +0100)
gnushogi/makepattern.c

index c9d97ad..947c4bc 100644 (file)
@@ -200,9 +200,6 @@ ReadOpeningSequences (short *pindex)
 
     fd = fopen (patternfile, "r");
 
-    if (fd == NULL)
-        fd = fopen ("gnushogi.pat", "r");
-
     if (fd == NULL) {
         sprintf(s, "no pattern file '%s'", patternfile);
         dsp->ShowMessage(s);