From: Darren S. <ds...@us...> - 2005-08-21 17:01:16
|
Update of /cvsroot/xine/xine-lib/src/xine-engine In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6168/src/xine-engine Modified Files: configfile.c Log Message: **BUGFIX** Allow the backup of an empty configuration file to succeed. Index: configfile.c =================================================================== RCS file: /cvsroot/xine/xine-lib/src/xine-engine/configfile.c,v retrieving revision 1.78 retrieving revision 1.79 diff -u -r1.78 -r1.79 --- configfile.c 21 Jul 2005 02:51:14 -0000 1.78 +++ configfile.c 21 Aug 2005 17:01:02 -0000 1.79 @@ -964,7 +964,7 @@ 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; |