summaryrefslogtreecommitdiff
path: root/noannounce.c
diff options
context:
space:
mode:
authorChristian Wieninger <cwieninger (at) gmx (dot) de>2009-11-11 18:23:41 +0100
committerChristian Wieninger <cwieninger (at) gmx (dot) de>2009-11-11 18:23:41 +0100
commit0716d467b0cfc0eafafbb9d8258f86fcf22222bd (patch)
tree614c72cada5a41f4ffc322b011b937ef1971255e /noannounce.c
parenta7bfa86f96342a3109f1e13a5b0a3383318d2ddd (diff)
downloadvdr-plugin-epgsearch-0716d467b0cfc0eafafbb9d8258f86fcf22222bd.tar.gz
vdr-plugin-epgsearch-0716d467b0cfc0eafafbb9d8258f86fcf22222bd.tar.bz2
some safety checks in mail announcements
Diffstat (limited to 'noannounce.c')
-rw-r--r--noannounce.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/noannounce.c b/noannounce.c
index 6ce8ed2..3c81066 100644
--- a/noannounce.c
+++ b/noannounce.c
@@ -42,11 +42,14 @@ cNoAnnounce::cNoAnnounce(const cEvent* e, time_t NextAnnounce)
title = shortText = "";
startTime = 0;
buffer = NULL;
- if (e->Title()) title = e->Title();
- if (e->ShortText()) shortText = e->ShortText();
- channelID = e->ChannelID();
- startTime = e->StartTime();
- nextAnnounce = NextAnnounce;
+ if (e)
+ {
+ if (e->Title()) title = e->Title();
+ if (e->ShortText()) shortText = e->ShortText();
+ channelID = e->ChannelID();
+ startTime = e->StartTime();
+ nextAnnounce = NextAnnounce;
+ }
}
cNoAnnounce::~cNoAnnounce(void)