summaryrefslogtreecommitdiffstats
path: root/subreader.c
diff options
context:
space:
mode:
Diffstat (limited to 'subreader.c')
-rw-r--r--subreader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/subreader.c b/subreader.c
index 950a4aaff0..c26f85d540 100644
--- a/subreader.c
+++ b/subreader.c
@@ -586,7 +586,7 @@ subtitle* sub_read_file (char *filename) {
sub_read_line_aqt
};
-
+ if(filename==NULL) return NULL; //qnx segfault
fd=fopen (filename, "r"); if (!fd) return NULL;
sub_format=sub_autodetect (fd);