diff options
author | Matti Lehtimäki <matti.lehtimaki@gmail.com> | 2012-04-14 00:54:53 +0300 |
---|---|---|
committer | Matti Lehtimäki <matti.lehtimaki@gmail.com> | 2012-04-14 00:54:53 +0300 |
commit | c603371f1ca66e7005f6142fcd0f77bd052ca18f (patch) | |
tree | 800a9670f0e3942f9157e215ba449d0f103e27b6 | |
parent | e1d229da6a962bbe2dcbdbbd0f0baf2d01887b76 (diff) | |
download | vdr-plugin-epgfixer-c603371f1ca66e7005f6142fcd0f77bd052ca18f.tar.gz vdr-plugin-epgfixer-c603371f1ca66e7005f6142fcd0f77bd052ca18f.tar.bz2 |
Fix null-pointer error.
-rw-r--r-- | epghandler.c | 10 |
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(""); |