aboutsummaryrefslogtreecommitdiffstats
path: root/src/input_file.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/input_file.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/input_file.c b/src/input_file.c
index eece19c53..8ffe11395 100644
--- a/src/input_file.c
+++ b/src/input_file.c
@@ -26,6 +26,9 @@ input_file_open(struct input_stream *is, const char *filename)
{
FILE *fp;
+ if (filename[0] != '/')
+ return false;
+
fp = fopen(filename, "r");
if (!fp) {
is->error = errno;