summaryrefslogtreecommitdiff
path: root/ci.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2018-03-19 16:39:58 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2018-03-19 16:39:58 +0100
commitb539134e548ce6fb51c16a3407567066f76e261c (patch)
treeb23b1e276912a261ccd8833459356157707795fe /ci.c
parent6180dcce45398a4ca4f13f220cf104e018f12767 (diff)
downloadvdr-b539134e548ce6fb51c16a3407567066f76e261c.tar.gz
vdr-b539134e548ce6fb51c16a3407567066f76e261c.tar.bz2
Fixed (not) saving the 'cam.data' file in case VDR stops early during startup due to some error
Diffstat (limited to 'ci.c')
-rw-r--r--ci.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ci.c b/ci.c
index 8ad50e43..07e0c892 100644
--- a/ci.c
+++ b/ci.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: ci.c 4.20 2018/02/03 12:55:03 kls Exp $
+ * $Id: ci.c 4.21 2018/03/19 16:37:03 kls Exp $
*/
#include "ci.h"
@@ -2993,6 +2993,8 @@ void cChannelCamRelations::Load(const char *FileName)
void cChannelCamRelations::Save(void)
{
+ if (!*fileName)
+ return;
cMutexLock MutexLock(&mutex);
struct stat st;
if (stat(fileName, &st) == 0) {