[Mplayer-cvslog] CVS: main/libmpdemux stream.c,1.24,1.25
Ivan Kalvachev
iive at mplayer.dev.hu
Mon Dec 3 18:14:38 CET 2001
Update of /cvsroot/mplayer/main/libmpdemux
In directory mplayer:/var/tmp.root/cvs-serv6404
Modified Files:
stream.c
Log Message:
fixed startup crash
Index: stream.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/stream.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- stream.c 1 Dec 2001 23:40:24 -0000 1.24
+++ stream.c 3 Dec 2001 17:14:36 -0000 1.25
@@ -212,6 +212,9 @@
stream_t* new_stream(int fd,int type){
stream_t *s=malloc(sizeof(stream_t));
+ if(s==NULL) return NULL;
+ memset(s,0,sizeof(stream_t));
+
s->fd=fd;
s->type=type;
s->buf_pos=s->buf_len=0;
More information about the MPlayer-cvslog
mailing list