1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Added a missing variable initialization in cRingBufferLinear::cRingBufferLinear()

This commit is contained in:
Klaus Schmidinger 2006-06-16 09:33:30 +02:00
parent b99c700f1d
commit 182224b65f
3 changed files with 5 additions and 1 deletions

View File

@ -1927,6 +1927,7 @@ M. Kiesel <vdr@continuity.cjb.net>
Prakash Punnoor <prakash@punnoor.de> Prakash Punnoor <prakash@punnoor.de>
for suggesting to remove -fPIC from VDR's and libsi's Makefile for suggesting to remove -fPIC from VDR's and libsi's Makefile
for adding a missing variable initialization in cRingBufferLinear::cRingBufferLinear()
Anssi Hannula <anssi.hannula@gmail.com> Anssi Hannula <anssi.hannula@gmail.com>
for a patch that was used to implement processing the "frequency list descriptor" for a patch that was used to implement processing the "frequency list descriptor"

View File

@ -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 actual device isn't used for updating a VPS timer's event as long as other
free devices are available. free devices are available.
- Modified rcu.c to better handle RC5 codes. - Modified rcu.c to better handle RC5 codes.
- Added a missing variable initialization in cRingBufferLinear::cRingBufferLinear()
(thanks to Prakash Punnoor).

View File

@ -7,7 +7,7 @@
* Parts of this file were inspired by the 'ringbuffy.c' from the * Parts of this file were inspired by the 'ringbuffy.c' from the
* LinuxDVB driver (see linuxtv.org). * 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" #include "ringbuffer.h"
@ -156,6 +156,7 @@ cRingBufferLinear::cRingBufferLinear(int Size, int Margin, bool Statistics, cons
{ {
description = Description ? strdup(Description) : NULL; description = Description ? strdup(Description) : NULL;
tail = head = margin = Margin; tail = head = margin = Margin;
gotten = 0;
buffer = NULL; buffer = NULL;
if (Size > 1) { // 'Size - 1' must not be 0! if (Size > 1) { // 'Size - 1' must not be 0!
if (Margin <= Size / 2) { if (Margin <= Size / 2) {