diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2001-09-16 08:57:58 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2001-09-16 08:57:58 +0200 |
commit | 6ceefaf85f1866e15a90b961cdc589a4fc38b3ae (patch) | |
tree | 2a8a114ab8f661b54986002398dca3db5f0e6b6a /config.h | |
parent | 9be288dbb41880b52ae5a3afb44dd082a045541b (diff) | |
download | vdr-6ceefaf85f1866e15a90b961cdc589a4fc38b3ae.tar.gz vdr-6ceefaf85f1866e15a90b961cdc589a4fc38b3ae.tar.bz2 |
Better error handling when writing configuration files
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: config.h 1.77 2001/09/14 14:35:32 kls Exp $ + * $Id: config.h 1.78 2001/09/15 15:38:40 kls Exp $ */ #ifndef __CONFIG_H @@ -226,7 +226,8 @@ public: } l = (T *)l->Next(); } - f.Close(); + if (!f.Close()) + result = false; } else result = false; |