From 39f6b6fc6b93609c5ef5bcccdc3afd00ded7402d Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 3 Nov 2013 14:02:01 +0100 Subject: Fixed a possible access to uninitialized data in cEIT::cEIT() --- eit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'eit.c') diff --git a/eit.c b/eit.c index e5fa3014..d5ca7dad 100644 --- a/eit.c +++ b/eit.c @@ -8,7 +8,7 @@ * Robert Schneider and Rolf Hakenes . * Adapted to 'libsi' for VDR 1.3.0 by Marcel Wiesweg . * - * $Id: eit.c 3.2 2013/10/12 11:10:11 kls Exp $ + * $Id: eit.c 3.3 2013/11/03 13:55:00 kls Exp $ */ #include "eit.h" @@ -54,8 +54,8 @@ cEIT::cEIT(cSchedules *Schedules, int Source, u_char Tid, const u_char *Data, bo bool Modified = false; time_t SegmentStart = 0; time_t SegmentEnd = 0; - struct tm tm_r; - struct tm t = *localtime_r(&Now, &tm_r); // this initializes the time zone in 't' + struct tm t = { 0 }; + localtime_r(&Now, &t); // this initializes the time zone in 't' SI::EIT::Event SiEitEvent; for (SI::Loop::Iterator it; eventLoop.getNext(SiEitEvent, it); ) { -- cgit v1.2.3