diff options
author | louis <louis.braun@gmx.de> | 2013-09-02 17:54:54 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-09-02 17:54:54 +0200 |
commit | 94a319d1a6ce1035a0d6187e414f2672a27b4ddf (patch) | |
tree | 7199a3e727d4b310e7264e5f4c07bed8fcf13104 /worker.c | |
parent | 4ca2771415b5a40609757bf65b07b77108bce6ff (diff) | |
download | vdr-plugin-tvscraper-94a319d1a6ce1035a0d6187e414f2672a27b4ddf.tar.gz vdr-plugin-tvscraper-94a319d1a6ce1035a0d6187e414f2672a27b4ddf.tar.bz2 |
fixed null pointer access
Diffstat (limited to 'worker.c')
-rw-r--r-- | worker.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -79,7 +79,8 @@ void cTVScraperWorker::SetDirectories(void) { scrapType cTVScraperWorker::GetScrapType(const cEvent *event) { scrapType type = scrapNone; - type = overrides->Type(event->Title()); + string title = (event->Title())?event->Title():""; + type = overrides->Type(title); if (type != scrapNone) return type; int duration = event->Duration() / 60; |