terminal UI: Fix circumstances when errors should be logged to stdout.
[pspp] / src / ui / terminal / terminal-opts.c
index 7b30ed5fd4f7bbee9386a401d73a7acf71f5aa27..d1296a36252ac449734bb6bd15875a23febd3e3f 100644 (file)
@@ -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);