From b5e2f92f1965c3ea7caf5facce9b2dde664d812f Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Thu, 1 Jun 2006 04:19:26 +0000 Subject: [PATCH] fix crash on web interface when saving config --- src/err.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/err.c b/src/err.c index e7847759..7e85097e 100644 --- a/src/err.c +++ b/src/err.c @@ -204,9 +204,12 @@ int err_getdest(void) { int err_setlogfile(char *file) { + if(strcmp(file,err_filename) == 0) + return TRUE; + _err_lock(); - if(err_logdest & LOGDEST_LOGFILE) { + if(err_file) { fclose(err_file); }