summaryrefslogtreecommitdiff
path: root/recording.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-11-04 13:19:49 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-11-04 13:19:49 +0100
commit23ee5bb4da71c7fa419bc8ad14f4d896ed6e6f2d (patch)
treec86b020078f2e7afa7d5b3759b35c0465e11e594 /recording.c
parent697261c981fa877b94661d310c07b216ca708f4f (diff)
downloadvdr-23ee5bb4da71c7fa419bc8ad14f4d896ed6e6f2d.tar.gz
vdr-23ee5bb4da71c7fa419bc8ad14f4d896ed6e6f2d.tar.bz2
Fixed a NULL pointer access with the cUnbufferedFile when a replay session runs all the way until the end of the recording
Diffstat (limited to 'recording.c')
-rw-r--r--recording.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/recording.c b/recording.c
index c90e54da..517aea0c 100644
--- a/recording.c
+++ b/recording.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: recording.c 1.122 2005/10/31 12:27:58 kls Exp $
+ * $Id: recording.c 1.123 2005/11/04 13:17:20 kls Exp $
*/
#include "recording.h"
@@ -1342,7 +1342,7 @@ cUnbufferedFile *cFileName::SetOffset(int Number, int Offset)
// found a non existing file suffix
}
if (Open() >= 0) {
- if (!record && Offset >= 0 && file->Seek(Offset, SEEK_SET) != Offset) {
+ if (!record && Offset >= 0 && file && file->Seek(Offset, SEEK_SET) != Offset) {
LOG_ERROR_STR(fileName);
return NULL;
}