From e1f04cd6fae1f3496a09a8b061c8b51392e76579 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Tue, 25 May 2021 20:14:06 +0200 Subject: [PATCH] Added missing initialization of cRecorder::lastErrors --- HISTORY | 1 + recorder.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/HISTORY b/HISTORY index 4424d479..dcf44fd4 100644 --- a/HISTORY +++ b/HISTORY @@ -9711,3 +9711,4 @@ Video Disk Recorder Revision History - cRecordingInfo::Errors() now returns -1 for old recordings; added a missing 'const' (suggested by Christoph Haubrich). - The error counter of a recording is now copied as is when editing a recording. +- Added missing initialization of cRecorder::lastErrors. diff --git a/recorder.c b/recorder.c index 21d99b44..0c07255d 100644 --- a/recorder.c +++ b/recorder.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: recorder.c 5.2 2021/05/23 15:03:17 kls Exp $ + * $Id: recorder.c 5.3 2021/05/25 20:14:06 kls Exp $ */ #include "recorder.h" @@ -172,6 +172,7 @@ cRecorder::cRecorder(const char *FileName, const cChannel *Channel, int Priority recordingInfo->Read(); oldErrors = max(0, recordingInfo->Errors()); // in case this is a re-started recording errors = oldErrors; + lastErrors = errors; firstIframeSeen = false; // Make sure the disk is up and running: