1
mirror of https://github.com/mpv-player/mpv synced 2024-11-03 03:19:24 +01:00

fopen(NULL,r) segfault on qnx

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2916 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
iive 2001-11-15 16:46:52 +00:00
parent af64eb7f60
commit 7c2f90829e

View File

@ -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);