diff --git a/src/err.c b/src/err.c index 3bdc0979..a56333d8 100644 --- a/src/err.c +++ b/src/err.c @@ -216,7 +216,7 @@ int err_settruncate(int truncate) { return TRUE; err_truncate = truncate; - if((err_truncate) && (err_filename)) { + if((err_truncate) && (err_file)) { file=strdup(err_filename); err_setlogfile(err_filename); if(file) free(file);