summaryrefslogtreecommitdiff
path: root/sysdep/unix/log.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-12-06 13:51:04 +0000
committerMartin Mares <mj@ucw.cz>1999-12-06 13:51:04 +0000
commitf78056fb2cf4554d5dcc50b5e0e79bc09ae825cf (patch)
tree0733bbab60ef3fd23c5481fccfebf1814e8ad98b /sysdep/unix/log.c
parent4ab5331c6370ba83dc7b228f9a94ccc1c64a973e (diff)
Allow logging to stderr as well.
Diffstat (limited to 'sysdep/unix/log.c')
-rw-r--r--sysdep/unix/log.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdep/unix/log.c b/sysdep/unix/log.c
index afc30a92..b4a028da 100644
--- a/sysdep/unix/log.c
+++ b/sysdep/unix/log.c
@@ -167,7 +167,10 @@ log_init(int debug)
void
log_switch(list *l)
{
- current_log_list = l;
+ if (EMPTY_LIST(*l))
+ current_log_list = &init_log_list;
+ else
+ current_log_list = l;
}
void