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:
parent
af64eb7f60
commit
7c2f90829e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user