projects
/
pspp-builds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bdd39d
)
terminal UI: Fix circumstances when errors should be logged to stdout.
author
Ben Pfaff
<blp@cs.stanford.edu>
Sat, 6 Mar 2010 19:43:42 +0000
(11:43 -0800)
committer
Ben Pfaff
<blp@cs.stanford.edu>
Sat, 6 Mar 2010 19:54:40 +0000
(11:54 -0800)
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
patch
|
blob
|
history
diff --git
a/src/ui/terminal/terminal-opts.c
b/src/ui/terminal/terminal-opts.c
index 7b30ed5fd4f7bbee9386a401d73a7acf71f5aa27..d1296a36252ac449734bb6bd15875a23febd3e3f 100644
(file)
--- 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);