diff options
author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2005-08-21 17:01:02 +0000 |
---|---|---|
committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2005-08-21 17:01:02 +0000 |
commit | 21c4975cc49bbbeac0067aa0847b3604ea639676 (patch) | |
tree | a87bdd332bea9442750221c818bdd773d5873236 | |
parent | a7235db1917e535448c4fee18c98a700aab958d8 (diff) | |
download | xine-lib-21c4975cc49bbbeac0067aa0847b3604ea639676.tar.gz xine-lib-21c4975cc49bbbeac0067aa0847b3604ea639676.tar.bz2 |
**BUGFIX**
Allow the backup of an empty configuration file to succeed.
CVS patchset: 7708
CVS date: 2005/08/21 17:01:02
-rw-r--r-- | src/xine-engine/configfile.c | 4 |
1 files 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; |