summaryrefslogtreecommitdiff
path: root/epghandler.c
diff options
context:
space:
mode:
authorMatti Lehtimäki <matti.lehtimaki@gmail.com>2012-04-14 00:54:53 +0300
committerMatti Lehtimäki <matti.lehtimaki@gmail.com>2012-04-14 00:54:53 +0300
commitc603371f1ca66e7005f6142fcd0f77bd052ca18f (patch)
tree800a9670f0e3942f9157e215ba449d0f103e27b6 /epghandler.c
parente1d229da6a962bbe2dcbdbbd0f0baf2d01887b76 (diff)
downloadvdr-plugin-epgfixer-c603371f1ca66e7005f6142fcd0f77bd052ca18f.tar.gz
vdr-plugin-epgfixer-c603371f1ca66e7005f6142fcd0f77bd052ca18f.tar.bz2
Fix null-pointer error.
Diffstat (limited to 'epghandler.c')
-rw-r--r--epghandler.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/epghandler.c b/epghandler.c
index d01fadf..ab837a0 100644
--- a/epghandler.c
+++ b/epghandler.c
@@ -338,10 +338,16 @@ bool cEpgfixerEpgHandler::FixBugs(cEvent *Event)
tmpstring = strdup(Event->Title());
break;
case REGEXP_SHORTTEXT:
- tmpstring = strdup(Event->ShortText());
+ if (Event->ShortText())
+ tmpstring = strdup(Event->ShortText());
+ else
+ tmpstring = strdup("");
break;
case REGEXP_DESCRIPTION:
- tmpstring = strdup(Event->Description());
+ if (Event->Description())
+ tmpstring = strdup(Event->Description());
+ else
+ tmpstring = strdup("");
break;
default:
tmpstring = strdup("");