From 21c4975cc49bbbeac0067aa0847b3604ea639676 Mon Sep 17 00:00:00 2001 From: Darren Salt Date: Sun, 21 Aug 2005 17:01:02 +0000 Subject: **BUGFIX** Allow the backup of an empty configuration file to succeed. CVS patchset: 7708 CVS date: 2005/08/21 17:01:02 --- src/xine-engine/configfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xine-engine/configfile.c b/src/xine-engine/configfile.c index 2eec9e830..89b40cb13 100644 --- a/src/xine-engine/configfile.c +++ b/src/xine-engine/configfile.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: configfile.c,v 1.78 2005/07/21 02:51:14 miguelfreitas Exp $ + * $Id: configfile.c,v 1.79 2005/08/21 17:01:02 dsalt Exp $ * * config object (was: file) management - implementation * @@ -964,7 +964,7 @@ void xine_config_save (xine_t *xine, const char *filename) { f_backup = fopen(temp, "w"); f_config = fopen(filename, "r"); - if (f_config && f_backup && (stat(filename, &config_stat) == 0) && (config_stat.st_size > 0)) { + if (f_config && f_backup && (stat(filename, &config_stat) == 0)) { char *buf = NULL; size_t rlen; -- cgit v1.2.3