diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2020-09-16 13:30:59 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2020-09-16 13:30:59 +0200 |
commit | 46b480c798c2d5f4acb8874f25e5129f2cf7f224 (patch) | |
tree | bb40c9139814ac59ce743aad7fe2fc58fd08c622 /recording.c | |
parent | b4a6c36215c6ecab80c3f3c3b03897816008c4ef (diff) | |
download | vdr-46b480c798c2d5f4acb8874f25e5129f2cf7f224.tar.gz vdr-46b480c798c2d5f4acb8874f25e5129f2cf7f224.tar.bz2 |
Fixed checking the return value of the Open() call in cFileName::SetOffset()
Diffstat (limited to 'recording.c')
-rw-r--r-- | recording.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/recording.c b/recording.c index 810ef809..1fc34cdd 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 4.27 2019/05/28 21:47:32 kls Exp $ + * $Id: recording.c 4.28 2020/09/16 13:30:59 kls Exp $ */ #include "recording.h" @@ -3025,8 +3025,8 @@ cUnbufferedFile *cFileName::SetOffset(int Number, off_t Offset) } // found a non existing file suffix } - if (Open() >= 0) { - if (!record && Offset >= 0 && file && file->Seek(Offset, SEEK_SET) != Offset) { + if (Open()) { + if (!record && Offset >= 0 && file->Seek(Offset, SEEK_SET) != Offset) { LOG_ERROR_STR(fileName); return NULL; } |