[MPlayer-cvslog] CVS: main/libmpdemux/realrtsp rtsp.c,1.19,1.20

Roberto Togni CVS syncmail at mplayerhq.hu
Sun Mar 19 17:02:06 CET 2006


CVS change done by Roberto Togni CVS

Update of /cvsroot/mplayer/main/libmpdemux/realrtsp
In directory mail:/var2/tmp/cvs-serv22374

Modified Files:
	rtsp.c 
Log Message:
Do not use ptr when it's NULL. CID 89


Index: rtsp.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/realrtsp/rtsp.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- rtsp.c	8 Feb 2006 23:44:44 -0000	1.19
+++ rtsp.c	19 Mar 2006 16:02:03 -0000	1.20
@@ -717,6 +717,7 @@
   while (*answer) {
     if (!strncasecmp(*answer,tag,strlen(tag))) {
       ptr=strchr(*answer,':');
+      if (!ptr) return NULL;
       ptr++;
       while(*ptr==' ') ptr++;
       return ptr;




More information about the MPlayer-cvslog mailing list