Added missing initialization of cChannel::nameSourceMode

This commit is contained in:
Klaus Schmidinger 2024-03-01 14:33:28 +01:00
parent 2c66d57d4b
commit 18c9cef1ea
3 changed files with 5 additions and 2 deletions

View File

@ -2821,6 +2821,7 @@ Winfried K
for fixing default values for DVB-T for fixing default values for DVB-T
for adding missing rounding when dividing frequencies in processing the NIT for adding missing rounding when dividing frequencies in processing the NIT
for suggesting to add note about not messing with event ids in EPG handlers for suggesting to add note about not messing with event ids in EPG handlers
for adding a missing initialization of cChannel::nameSourceMode
Hans-Werner Hilse <hilse@web.de> Hans-Werner Hilse <hilse@web.de>
for adding the command line option --userdump to enable core dumps in case VDR for adding the command line option --userdump to enable core dumps in case VDR

View File

@ -9887,7 +9887,8 @@ Video Disk Recorder Revision History
- Fixed possible duplicate component entries in the info of an ongoing recording - Fixed possible duplicate component entries in the info of an ongoing recording
(reported by Christoph Haubrich). (reported by Christoph Haubrich).
2024-02-15: 2024-03-01:
- Fixed the move assignment operator to check for self-assignment (suggested by - Fixed the move assignment operator to check for self-assignment (suggested by
Stefan Herdler). Stefan Herdler).
- Added missing initialization of cChannel::nameSourceMode (thanks to Winfried Köhler).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: channels.c 5.1 2021/05/21 09:38:34 kls Exp $ * $Id: channels.c 5.2 2024/03/01 14:31:49 kls Exp $
*/ */
#include "channels.h" #include "channels.h"
@ -60,6 +60,7 @@ cChannel::cChannel(void)
provider = strdup(""); provider = strdup("");
portalName = strdup(""); portalName = strdup("");
memset(&__BeginData__, 0, (char *)&__EndData__ - (char *)&__BeginData__); memset(&__BeginData__, 0, (char *)&__EndData__ - (char *)&__BeginData__);
nameSourceMode = 0;
parameters = ""; parameters = "";
modification = CHANNELMOD_NONE; modification = CHANNELMOD_NONE;
seen = 0; seen = 0;