From 182224b65f42113829bb85b5cb1fd9a209754fe4 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Fri, 16 Jun 2006 09:33:30 +0200 Subject: Added a missing variable initialization in cRingBufferLinear::cRingBufferLinear() --- CONTRIBUTORS | 1 + HISTORY | 2 ++ ringbuffer.c | 3 ++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index ae0391ff..730d5b66 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -1927,6 +1927,7 @@ M. Kiesel Prakash Punnoor for suggesting to remove -fPIC from VDR's and libsi's Makefile + for adding a missing variable initialization in cRingBufferLinear::cRingBufferLinear() Anssi Hannula for a patch that was used to implement processing the "frequency list descriptor" diff --git a/HISTORY b/HISTORY index 5b8430de..6f5600db 100644 --- a/HISTORY +++ b/HISTORY @@ -4795,3 +4795,5 @@ Video Disk Recorder Revision History actual device isn't used for updating a VPS timer's event as long as other free devices are available. - Modified rcu.c to better handle RC5 codes. +- Added a missing variable initialization in cRingBufferLinear::cRingBufferLinear() + (thanks to Prakash Punnoor). diff --git a/ringbuffer.c b/ringbuffer.c index e00a524f..0633bd37 100644 --- a/ringbuffer.c +++ b/ringbuffer.c @@ -7,7 +7,7 @@ * Parts of this file were inspired by the 'ringbuffy.c' from the * LinuxDVB driver (see linuxtv.org). * - * $Id: ringbuffer.c 1.23 2005/12/30 15:42:08 kls Exp $ + * $Id: ringbuffer.c 1.24 2006/06/16 09:32:13 kls Exp $ */ #include "ringbuffer.h" @@ -156,6 +156,7 @@ cRingBufferLinear::cRingBufferLinear(int Size, int Margin, bool Statistics, cons { description = Description ? strdup(Description) : NULL; tail = head = margin = Margin; + gotten = 0; buffer = NULL; if (Size > 1) { // 'Size - 1' must not be 0! if (Margin <= Size / 2) { -- cgit v1.2.3