[Mplayer-cvslog] CVS: main/libmpdemux network.c,1.76,1.77

Ross Finlayson CVS rsf at mplayerhq.hu
Fri Apr 18 09:48:57 CEST 2003


Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv6226

Modified Files:
	network.c 
Log Message:
Fixed the code that checks for a ".rm" URL extension to also make sure
that the extension is not NULL.


Index: network.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/network.c,v
retrieving revision 1.76
retrieving revision 1.77
diff -u -r1.76 -r1.77
--- network.c	17 Apr 2003 20:39:41 -0000	1.76
+++ network.c	18 Apr 2003 07:48:29 -0000	1.77
@@ -592,7 +592,7 @@
 						extension=(url->file)+i+1;
 						break;
 			}
-			if (!strcasecmp(extension, "rm")) {
+			if (extension != NULL && !strcasecmp(extension, "rm")) {
 				*file_format = DEMUXER_TYPE_REAL;
 				return 0;
 			}



More information about the MPlayer-cvslog mailing list