1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-22 12:30:41 +00:00

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

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;
}