VDR version 1.4.1, uninitialized var

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

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

--- 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);

Cheers,
-- 
(?=                 =?)
//\ Prakash Punnoor /\\
V_/                 \_V
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.linuxtv.org/pipermail/vdr/attachments/20060615/060e86d3/attachment.pgp

[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux