freebsd-ports/multimedia/vdr/files/patch-receiver.c
Juergen Lock a37a080307 - Update multimedia/vdr to 1.7.19 (with parts of the update reverted
to avoid a known bug.)
- Fix build with clang for vdr and plugins, and also fix a few bugs it
  uncovered.
- Bump PORTREVISION for all plugins.
2011-06-25 19:02:08 +00:00

15 lines
512 B
C

--- receiver.c.orig
+++ receiver.c
@@ -36,10 +36,10 @@ cReceiver::cReceiver(const cChannel *Cha
cReceiver::~cReceiver()
{
if (device) {
- const char *msg = "ERROR: cReceiver has not been detached yet! This is a design fault and VDR will segfault now!";
+ const char *msg = "ERROR: cReceiver has not been detached yet! This is a design fault and VDR will abort now!";
esyslog("%s", msg);
fprintf(stderr, "%s\n", msg);
- *(char *)0 = 0; // cause a segfault
+ abort();
}
}