aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/io/input.c2
-rw-r--r--test/src/io/test_input.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/io/input.c b/src/io/input.c
index 726b710..06771b1 100644
--- a/src/io/input.c
+++ b/src/io/input.c
@@ -110,7 +110,7 @@ bool input_init(const config_t *cfg) {
}
void input_quit(void) {
- if (in != NULL && in != stdout) {
+ if (in != NULL && in != stdin) {
fclose(in);
}
}
diff --git a/test/src/io/test_input.c b/test/src/io/test_input.c
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/test/src/io/test_input.c
@@ -0,0 +1 @@
+