diff options
author | Martin Mares <mj@ucw.cz> | 1999-12-06 13:51:04 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1999-12-06 13:51:04 +0000 |
commit | f78056fb2cf4554d5dcc50b5e0e79bc09ae825cf (patch) | |
tree | 0733bbab60ef3fd23c5481fccfebf1814e8ad98b /sysdep/unix/log.c | |
parent | 4ab5331c6370ba83dc7b228f9a94ccc1c64a973e (diff) |
Allow logging to stderr as well.
Diffstat (limited to 'sysdep/unix/log.c')
-rw-r--r-- | sysdep/unix/log.c | 5 |
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 |