[PATCH 2/2] NULL pointer check for file at cRecordingInfo::Read(FILE *f)

Mika Laitio lamikr at pilppa.org
Sun Apr 3 12:12:20 CEST 2011


Signed-off-by: Mika Laitio <lamikr at pilppa.org>
---
 recording.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/recording.c b/recording.c
index 02a6e61..07528a2 100644
--- a/recording.c
+++ b/recording.c
@@ -412,7 +412,7 @@ void cRecordingInfo::SetFramesPerSecond(double FramesPerSecond)
 
 bool cRecordingInfo::Read(FILE *f)
 {
-  if (ownEvent) {
+  if (f && ownEvent) {
      cReadLine ReadLine;
      char *s;
      int line = 0;
-- 
1.7.3.4


--------------080200080109040002030409--



More information about the vdr mailing list