2004-12-21 Paul Jakma <paul.jakma@sun.com>

	* stream.c: Dont allocate streams with 0 sized data buffers
diff --git a/lib/stream.c b/lib/stream.c
index 2d4de76..1b85b13 100644
--- a/lib/stream.c
+++ b/lib/stream.c
@@ -46,6 +46,11 @@
 {
   struct stream *s;
 
+  assert (size > 0);
+  
+  if (size == 0)
+    return NULL;
+  
   s = XCALLOC (MTYPE_STREAM, sizeof (struct stream));
 
   s->data = XCALLOC (MTYPE_STREAM_DATA, size);