changeset 6892:b8e0b1c54940

10000l - didn't clear new stream struct, causing possible sig11 in cache layer
author arpi
date Sun, 04 Aug 2002 13:35:25 +0000
parents e1c5f3128b3a
children c46a092020e2
files libmpdemux/stream.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/stream.c	Sun Aug 04 11:09:20 2002 +0000
+++ b/libmpdemux/stream.c	Sun Aug 04 13:35:25 2002 +0000
@@ -248,6 +248,7 @@
 
 stream_t* new_memory_stream(unsigned char* data,int len){
   stream_t *s=malloc(sizeof(stream_t)+len);
+  memset(s,0,sizeof(stream_t));
   s->fd=-1;
   s->type=STREAMTYPE_MEMORY;
   s->buf_pos=0; s->buf_len=len;