[Mplayer-cvslog] CVS: main subreader.c,1.37,1.38

Ivan Kalvachev iive at mplayer.dev.hu
Thu Nov 15 17:46:55 CET 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv16824

Modified Files:
	subreader.c 
Log Message:
fopen(NULL,r) segfault on qnx

Index: subreader.c
===================================================================
RCS file: /cvsroot/mplayer/main/subreader.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- subreader.c	15 Nov 2001 11:53:11 -0000	1.37
+++ subreader.c	15 Nov 2001 16:46:52 -0000	1.38
@@ -586,7 +586,7 @@
 	    sub_read_line_aqt
 
     };
-
+    if(filename==NULL) return NULL; //qnx segfault
     fd=fopen (filename, "r"); if (!fd) return NULL;
 
     sub_format=sub_autodetect (fd);




More information about the MPlayer-cvslog mailing list