summaryrefslogtreecommitdiffstats
path: root/subreader.c
diff options
context:
space:
mode:
authoriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-15 16:46:52 +0000
committeriive <iive@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-15 16:46:52 +0000
commit7c2f90829e1ef9e1512ce7c79ad269bcaa735e15 (patch)
tree9277e1e82b1b20e458168fb3f0d43ba9828ee627 /subreader.c
parentaf64eb7f60d759747c71fee51349e30f2253a1b6 (diff)
downloadmpv-7c2f90829e1ef9e1512ce7c79ad269bcaa735e15.tar.bz2
mpv-7c2f90829e1ef9e1512ce7c79ad269bcaa735e15.tar.xz
fopen(NULL,r) segfault on qnx
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2916 b3059339-0415-0410-9bf9-f77b7e298cf2
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);