diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2014-02-08 16:00:13 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2014-02-08 16:00:13 +0100 |
commit | 8b2f500d2a3180b0c038edcb81dcfb98fb6d2b7a (patch) | |
tree | 03e3c4cfbebc45a0ab76eb4957bef87c6985be54 /receiver.c | |
parent | a30563634d6184145f1b1529ca4502fd49e8e0e9 (diff) | |
download | vdr-8b2f500d2a3180b0c038edcb81dcfb98fb6d2b7a.tar.gz vdr-8b2f500d2a3180b0c038edcb81dcfb98fb6d2b7a.tar.bz2 |
Replaced the NULL pointer assignment in ~cReceiver() to force a segfault with a call to abort()
Diffstat (limited to 'receiver.c')
-rw-r--r-- | receiver.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: receiver.c 3.1 2014/01/01 12:03:00 kls Exp $ + * $Id: receiver.c 3.2 2014/02/08 15:57:30 kls Exp $ */ #include "receiver.h" @@ -22,10 +22,10 @@ cReceiver::cReceiver(const cChannel *Channel, int Priority) 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(); } } |