summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-plugins/vdr-zaphistory/files/vdr-zaphistory-0.9.6-fix-crash-no-info.diff')
-rw-r--r--media-plugins/vdr-zaphistory/files/vdr-zaphistory-0.9.6-fix-crash-no-info.diff15
1 files changed, 15 insertions, 0 deletions
diff --git a/media-plugins/vdr-zaphistory/files/vdr-zaphistory-0.9.6-fix-crash-no-info.diff b/media-plugins/vdr-zaphistory/files/vdr-zaphistory-0.9.6-fix-crash-no-info.diff
new file mode 100644
index 000000000000..274012d731e4
--- /dev/null
+++ b/media-plugins/vdr-zaphistory/files/vdr-zaphistory-0.9.6-fix-crash-no-info.diff
@@ -0,0 +1,15 @@
+diff -Naur zaphistory-0.9.6.orig/zaphistoryosd.c zaphistory-0.9.6/zaphistoryosd.c
+--- zaphistory-0.9.6.orig/zaphistoryosd.c 2013-09-15 15:22:41.000000000 +0200
++++ zaphistory-0.9.6/zaphistoryosd.c 2013-09-15 15:24:42.000000000 +0200
+@@ -217,6 +217,11 @@
+
+ return AddSubMenu( new cMenuEvent(schedule->GetEventAround(time(NULL)) ) );
+
++ const cEvent *event = schedule->GetEventAround(time(NULL));
++ if (event)
++ return AddSubMenu( new cMenuEvent(event) );
++ else
++ return osUnknown;
+ }
+
+ eOSState cMenuZappedChannels::ProcessKey(eKeys Key)