From f78056fb2cf4554d5dcc50b5e0e79bc09ae825cf Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 6 Dec 1999 13:51:04 +0000 Subject: Allow logging to stderr as well. --- sysdep/unix/log.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sysdep/unix/log.c') diff --git a/sysdep/unix/log.c b/sysdep/unix/log.c index afc30a9..b4a028d 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 -- cgit v1.2.3