VDR version 1.4.1, uninitialized var

Message ID 200606152241.47746.prakash@punnoor.de
State New
Headers

Commit Message

Prakash Punnoor June 15, 2006, 8:41 p.m. UTC
  Hi,

I suggest following small patch, as valgrind complains otherwise in 
combination with softdevice:


Cheers,
  

Patch

--- ringbuffer.c.old	2006-06-15 22:36:33.000000000 +0200
+++ ringbuffer.c	2006-06-15 22:19:11.000000000 +0200
@@ -157,6 +157,7 @@ 
   description = Description ? strdup(Description) : NULL;
   tail = head = margin = Margin;
   buffer = NULL;
+  gotten = 0;
   if (Size > 1) { // 'Size - 1' must not be 0!
      if (Margin <= Size / 2) {
         buffer = MALLOC(uchar, Size);