aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/io.c')
-rw-r--r--src/io.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/io.c b/src/io.c
index 5530ab7..ecbb0c9 100644
--- a/src/io.c
+++ b/src/io.c
@@ -14,12 +14,7 @@ void sourcelocation_build_json(JsonBuilder* builder, SourceLocation* loc) {
}
InFile* infile_open(const char* filename) {
- FILE* in;
- if (strcmp(filename, "-") == 0) {
- in = stdin;
- } else {
- in = fopen(filename, "rb");
- }
+ FILE* in = fopen(filename, "rb");
if (!in) {
return NULL;
}