summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2008-03-05 16:45:54 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2008-03-05 16:45:54 +0100
commit22805840fbb0aa90f1dfee9c78c3cf1de4886b47 (patch)
tree09650f6bed1f97f5268c8bcad0874d86c2326168
parent5323db268db95d5336dbeaf8edc955d28ccf540f (diff)
downloadvdr-22805840fbb0aa90f1dfee9c78c3cf1de4886b47.tar.gz
vdr-22805840fbb0aa90f1dfee9c78c3cf1de4886b47.tar.bz2
Added a missing reset of maxNumber in cChannels::Renumber()
-rw-r--r--CONTRIBUTORS3
-rw-r--r--HISTORY5
-rw-r--r--channels.c5
3 files changed, 11 insertions, 2 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 9287677c..384d7ffb 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -2321,3 +2321,6 @@ Tomas Berglund <tomber@telia.com>
Johan Schuring <johan.schuring@vetteblei.nl>
for translating OSD texts to the Dutch language
+
+Sundararaj Reel <sundararaj.reel@googlemail.com>
+ for reporting a missing reset of maxNumber in cChannels::Renumber()
diff --git a/HISTORY b/HISTORY
index ef4477c0..348163df 100644
--- a/HISTORY
+++ b/HISTORY
@@ -5693,3 +5693,8 @@ Video Disk Recorder Revision History
- Changed the default character set for SI data from ISO6937 (as required by the DVB
standard ETSI EN 300 468) to ISO-8859-9, in order to work around the stupidity of
some providers, who actually use ISO-8859-9, but fail to correctly announce that.
+
+2008-03-05: Version 1.5.18
+
+- Added a missing reset of maxNumber in cChannels::Renumber() (reported by Sundararaj
+ Reel).
diff --git a/channels.c b/channels.c
index 9730a436..86d02380 100644
--- a/channels.c
+++ b/channels.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: channels.c 1.59 2008/02/10 15:45:38 kls Exp $
+ * $Id: channels.c 1.60 2008/03/05 16:42:50 kls Exp $
*/
#include "channels.h"
@@ -947,9 +947,10 @@ int cChannels::GetPrevNormal(int Idx)
return channel ? Idx : -1;
}
-void cChannels::ReNumber( void )
+void cChannels::ReNumber(void)
{
channelsHashSid.Clear();
+ maxNumber = 0;
int Number = 1;
for (cChannel *channel = First(); channel; channel = Next(channel)) {
if (channel->GroupSep()) {