changeset 180:afa2c05cfe43

terrible fatal bug fixed
author arpi_esp
date Wed, 21 Mar 2001 03:20:17 +0000
parents 6f890e61739b
children c7b4ef1f3dfb
files stream.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/stream.c	Wed Mar 21 02:56:06 2001 +0000
+++ b/stream.c	Wed Mar 21 03:20:17 2001 +0000
@@ -192,6 +192,7 @@
   stream_t *s=malloc(sizeof(stream_t));
   s->fd=fd;
   s->type=type;
+  s->buf_pos=s->buf_len=0;
   stream_reset(s);
   return s;
 }