vdr-plugin-live: fix gcc7 build

This commit is contained in:
Sascha Kuehndel (InuSasha) 2017-05-12 00:18:13 +02:00
parent 21ec9080de
commit 74fe989ea9
No known key found for this signature in database
GPG Key ID: 15FED89617B88D1B

View File

@ -0,0 +1,14 @@
part of patch from Jasmin Jessich <jasmin@anw.at>
https://github.com/jasmin-j/vdr-plugin-live/commit/b86560030911208be738163ecd0e48790c9317a1
--- a/pages/multischedule.ecpp 2017-05-11 18:13:21.359696377 +0200
+++ b/pages/multischedule.ecpp 2017-05-11 18:15:13.777869558 +0200
@@ -295,7 +295,7 @@
cChannel* Channel = Channels.GetByNumber( chan );
if ( ! Channel )
continue;
- if ( Channel->GroupSep() || Channel->Name() == '\0' )
+ if ( Channel->GroupSep() || !Channel->Name() || !*Channel->Name() )
continue;
channel_names[ j ] = Channel->Name();
channel_IDs[ j ] = Channel->GetChannelID();