From 3bd2658c85f00269583259d5912c88f031b9599f Mon Sep 17 00:00:00 2001 From: Christian Wieninger Date: Fri, 6 Apr 2012 20:27:04 +0200 Subject: bugtracker #929, bunch of warning fixes, thanks to Joe_D for providing this patch --- recdone.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'recdone.c') diff --git a/recdone.c b/recdone.c index 04d7085..84387e1 100644 --- a/recdone.c +++ b/recdone.c @@ -68,9 +68,15 @@ cRecDone::cRecDone(cTimer* Timer, const cEvent* Event, cSearchExt* Search) description = strdup(Event->Description()); startTime = Event->StartTime(); duration = Event->Duration(); - channelID = Timer->Channel()->GetChannelID(); - if (Timer && !isempty(Timer->Aux())) - aux = strdup(Timer->Aux()); + if (Timer) + { + channelID = Timer->Channel()->GetChannelID(); + if (!isempty(Timer->Aux())) + aux = strdup(Timer->Aux()); + } else { + channelID = tChannelID::InvalidID; + aux = NULL; + } } } -- cgit v1.2.3