diff options
author | Dimitar Petrovski <dimeptr@gmail.com> | 2012-05-08 16:11:14 +0200 |
---|---|---|
committer | Dimitar Petrovski <dimeptr@gmail.com> | 2012-05-08 16:11:14 +0200 |
commit | b38d4c6e66df5226f37f0dd36d3cf8070a95ae7e (patch) | |
tree | 6773b37a57ff186fefb44ea61dee4207c0185f60 /epghandler.c | |
parent | c994b221ae2e9b5a395ab5641f5a6f66f0de18cc (diff) | |
download | vdr-plugin-eepg-b38d4c6e66df5226f37f0dd36d3cf8070a95ae7e.tar.gz vdr-plugin-eepg-b38d4c6e66df5226f37f0dd36d3cf8070a95ae7e.tar.bz2 |
fix string comparison
Diffstat (limited to 'epghandler.c')
-rw-r--r-- | epghandler.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epghandler.c b/epghandler.c index 9bb7776..51074ad 100644 --- a/epghandler.c +++ b/epghandler.c @@ -27,19 +27,19 @@ bool cEEpgHandler::SetEventID(cEvent* Event, tEventID EventID) { } bool cEEpgHandler::SetTitle(cEvent* Event, const char* Title) { - if (Event->Title() == "" || (Title != "" && Title != Event->Title())) + if (!strcmp(Event->Title(),"") || (strcmp(Title,"") && strcmp(Event->Title(),Title))) Event->SetTitle(Title); return true; } bool cEEpgHandler::SetShortText(cEvent* Event, const char* ShortText) { - if (Event->ShortText() == "" || (ShortText != "" && ShortText != Event->ShortText())) + if (!strcmp(Event->ShortText(),"") || (strcmp(ShortText,"") && strcmp(Event->ShortText(),ShortText))) Event->SetShortText(ShortText); return true; } bool cEEpgHandler::SetDescription(cEvent* Event, const char* Description) { - if (Event->Description() == "" || (Description != "" && Description != Event->Description())) + if (!strcmp(Event->Description(),"") || (strcmp(Description,"") && strcmp(Event->Description(),Description))) Event->SetDescription(Description); return true; } |