diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-07-30 14:53:29 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-07-30 14:53:29 +0200 |
commit | 44a4d1211783e8b0436ff988158a39ecab119524 (patch) | |
tree | db19628d6f9e660203235414efaa5b70010e5cb7 /epg.c | |
parent | aaa22842782212b222d545c4049e4a8b6f718807 (diff) | |
download | vdr-44a4d1211783e8b0436ff988158a39ecab119524.tar.gz vdr-44a4d1211783e8b0436ff988158a39ecab119524.tar.bz2 |
Avoiding duplicate components in EPG events when reading epg.data or in the PUTE SVDRP command
Diffstat (limited to 'epg.c')
-rw-r--r-- | epg.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -7,7 +7,7 @@ * Original version (as used in VDR before 1.3.0) written by * Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>. * - * $Id: epg.c 1.35 2005/06/05 12:17:15 kls Exp $ + * $Id: epg.c 1.36 2005/07/30 14:44:54 kls Exp $ */ #include "epg.h" @@ -298,6 +298,8 @@ bool cEvent::Read(FILE *f, cSchedule *Schedule) if (n == 3 || n == 4) { Event = (cEvent *)Schedule->GetEvent(EventID, StartTime); cEvent *newEvent = NULL; + if (Event) + DELETENULL(Event->components); if (!Event) Event = newEvent = new cEvent(EventID); if (Event) { |