fix crash on web interface when saving config

This commit is contained in:
Ron Pedde 2006-06-01 04:19:26 +00:00
parent a02298ca0d
commit b5e2f92f19

View File

@ -204,9 +204,12 @@ int err_getdest(void) {
int err_setlogfile(char *file) { int err_setlogfile(char *file) {
if(strcmp(file,err_filename) == 0)
return TRUE;
_err_lock(); _err_lock();
if(err_logdest & LOGDEST_LOGFILE) { if(err_file) {
fclose(err_file); fclose(err_file);
} }