Merge pull request #2389 from colinleroy/fix-2388

Fix #2388
This commit is contained in:
Bob Andrews 2024-02-02 18:25:39 +01:00 committed by GitHub
commit 128f261c3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 3 deletions

View File

@ -30,9 +30,7 @@ char *argv[];
#endif
{
/* Fake stdin with the reference file */
fclose(stdin);
stdin = fopen(INFILE, "r");
if (stdin == NULL) {
if (freopen(INFILE, "rb", stdin) == NULL) {
return EXIT_FAILURE;
}