summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2006-05-17 20:18:08 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2006-05-17 20:18:08 +0000
commitc56a26b86f523a87aff3bc38cab9539f9750bf21 (patch)
tree1bc233381dec7f4c1f838d5495b7dc2290b1ab82 /media-plugins/vdr-zaphistory/files
parent~x86-fbsd, spb @ #gentoo-bsd kindly allowed me to add the keyword (diff)
downloadgentoo-2-c56a26b86f523a87aff3bc38cab9539f9750bf21.tar.gz
gentoo-2-c56a26b86f523a87aff3bc38cab9539f9750bf21.tar.bz2
gentoo-2-c56a26b86f523a87aff3bc38cab9539f9750bf21.zip
Added a crashfix.
(Portage version: 2.0.54-r2)
Diffstat (limited to 'media-plugins/vdr-zaphistory/files')
-rw-r--r--media-plugins/vdr-zaphistory/files/digest-vdr-zaphistory-0.9.4-r11
-rw-r--r--media-plugins/vdr-zaphistory/files/vdr-zaphistory-0.9.4-fix-crash-no-info.diff17
2 files changed, 18 insertions, 0 deletions
diff --git a/media-plugins/vdr-zaphistory/files/digest-vdr-zaphistory-0.9.4-r1 b/media-plugins/vdr-zaphistory/files/digest-vdr-zaphistory-0.9.4-r1
new file mode 100644
index 000000000000..e140f6f78d67
--- /dev/null
+++ b/media-plugins/vdr-zaphistory/files/digest-vdr-zaphistory-0.9.4-r1
@@ -0,0 +1 @@
+MD5 6c78ff822dfdcc0bf648f3a3b9e62739 vdr-zaphistory-0.9.4.tgz 19725
diff --git a/media-plugins/vdr-zaphistory/files/vdr-zaphistory-0.9.4-fix-crash-no-info.diff b/media-plugins/vdr-zaphistory/files/vdr-zaphistory-0.9.4-fix-crash-no-info.diff
new file mode 100644
index 000000000000..866b162beeae
--- /dev/null
+++ b/media-plugins/vdr-zaphistory/files/vdr-zaphistory-0.9.4-fix-crash-no-info.diff
@@ -0,0 +1,17 @@
+diff -u zaphistory-0.9.4-orig/zaphistoryosd.c zaphistory-0.9.4/zaphistoryosd.c
+--- zaphistory-0.9.4-orig/zaphistoryosd.c 2006-05-17 21:56:05.000000000 +0200
++++ zaphistory-0.9.4/zaphistoryosd.c 2006-05-17 21:58:28.000000000 +0200
+@@ -205,8 +205,11 @@
+ if (schedule == NULL)
+ return osUnknown;
+
+- 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)