summaryrefslogtreecommitdiff
path: root/recdone.c
diff options
context:
space:
mode:
authorChristian Wieninger <cwieninger@gmx.de>2012-04-06 20:27:04 +0200
committerChristian Wieninger <cwieninger@gmx.de>2012-04-06 20:27:04 +0200
commit3bd2658c85f00269583259d5912c88f031b9599f (patch)
tree6f95f40fbaf30b383a16f566d84a0ade7b448cec /recdone.c
parent65f1e5030f076c530a5a6a37ead43cf7d9d86325 (diff)
downloadvdr-plugin-epgsearch-3bd2658c85f00269583259d5912c88f031b9599f.tar.gz
vdr-plugin-epgsearch-3bd2658c85f00269583259d5912c88f031b9599f.tar.bz2
bugtracker #929, bunch of warning fixes, thanks to Joe_D for providing this patch
Diffstat (limited to 'recdone.c')
-rw-r--r--recdone.c12
1 files changed, 9 insertions, 3 deletions
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;
+ }
}
}