Repaired an initialization bug in _oggpack_writeinit() found by Slavo
authorMonty <xiphmont@xiph.org>
Mon, 15 Nov 1999 16:05:38 +0000 (16:05 +0000)
committerMonty <xiphmont@xiph.org>
Mon, 15 Nov 1999 16:05:38 +0000 (16:05 +0000)
Kopinec <macik@europe.com>

Monty

svn path=/trunk/vorbis/; revision=170

lib/bitwise.c

index ec4bd67..2b8f87a 100644 (file)
@@ -39,6 +39,7 @@ static unsigned long mask[]=
 void _oggpack_writeinit(oggpack_buffer *b){
   memset(b,0,sizeof(oggpack_buffer));
   b->ptr=b->buffer=malloc(BUFFER_INCREMENT);
+  b->buffer[0]='\0';
   b->storage=BUFFER_INCREMENT;
 }