X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fui%2Fterminal%2Fterminal-opts.c;h=d1296a36252ac449734bb6bd15875a23febd3e3f;hb=bcbf301dff22591f0b8b7eccd3502ddc05e68d85;hp=a0f6072b521b65698ee4d0c6bb33fee8da2f4b4e;hpb=d0b91eae59319ab2756d0d43b9cb15eb9cd3c234;p=pspp-builds.git diff --git a/src/ui/terminal/terminal-opts.c b/src/ui/terminal/terminal-opts.c index a0f6072b..d1296a36 100644 --- a/src/ui/terminal/terminal-opts.c +++ b/src/ui/terminal/terminal-opts.c @@ -123,7 +123,7 @@ parse_output_option (struct terminal_opts *to, const char *option) key = xmemdup0 (option, equals - option); if (string_map_contains (&to->options, key)) { - error (0, 0, _("%s: output option %s specified more than twice"), key); + error (0, 0, _("%s: output option specified more than once"), key); free (key); return; } @@ -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);