summaryrefslogtreecommitdiff
path: root/ringbuffer.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-06-16 09:33:30 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-06-16 09:33:30 +0200
commit182224b65f42113829bb85b5cb1fd9a209754fe4 (patch)
treea1be3296a47c0d6651d070a1d5ff4114b5fba500 /ringbuffer.c
parentb99c700f1de7a6950807a1d32e9cb824e897f947 (diff)
downloadvdr-182224b65f42113829bb85b5cb1fd9a209754fe4.tar.gz
vdr-182224b65f42113829bb85b5cb1fd9a209754fe4.tar.bz2
Added a missing variable initialization in cRingBufferLinear::cRingBufferLinear()
Diffstat (limited to 'ringbuffer.c')
-rw-r--r--ringbuffer.c3
1 files changed, 2 insertions, 1 deletions
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) {