From fddfbb3c47fe4234453350df5b4559d75c3bedc9 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Sat, 6 Mar 2010 11:43:42 -0800 Subject: [PATCH] terminal UI: Fix circumstances when errors should be logged to stdout. The logic here was supposed to be that, if errors weren't already being logged explicitly and if no output driver was already directed to stdout, then send errors to standard output. But one of the conditions was reversed. This fixes the problem. --- src/ui/terminal/terminal-opts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/terminal/terminal-opts.c b/src/ui/terminal/terminal-opts.c index 7b30ed5f..d1296a36 100644 --- a/src/ui/terminal/terminal-opts.c +++ b/src/ui/terminal/terminal-opts.c @@ -335,7 +335,7 @@ terminal_opts_done (struct terminal_opts *to, int argc, char *argv[]) register_output_driver (to); } - if (to->has_terminal_driver && !to->has_error_file) + if (!to->has_terminal_driver && !to->has_error_file) msglog_create ("-"); string_map_destroy (&to->options); -- 2.30.2