diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-04-24 16:29:28 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-04-24 16:29:28 +0300 |
commit | e68bb718eb37adc37d9fc13ec0cd4299429ed87c (patch) | |
tree | b263adcdbb8c395d09c1f5d32e12c219785d4391 | |
parent | a85df0cad318d645bcb334cbafbb8010f0f829a9 (diff) | |
download | slb-e68bb718eb37adc37d9fc13ec0cd4299429ed87c.tar.gz slb-e68bb718eb37adc37d9fc13ec0cd4299429ed87c.tar.bz2 |
Minor change.
* src/output.c (slb_set_output_defaults): Restore to its state
before ddf46208.
* src/slb.c (main): Prefer output_file_option in test mode.
-rw-r--r-- | src/output.c | 2 | ||||
-rw-r--r-- | src/slb.c | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/output.c b/src/output.c index 2e76e93..2d7ba27 100644 --- a/src/output.c +++ b/src/output.c @@ -56,7 +56,7 @@ slb_add_outfd(fd_set *fdset) void slb_set_output_defaults() { - output_file = output_file_option ? output_file_option : "-"; + output_file = "-"; } /* Spec. | Replaced with @@ -437,7 +437,10 @@ main(int argc, char **argv) if (test_option) { int rc; - slb_set_output_defaults(); + if (output_file_option) + output_file = output_file_option; + else + slb_set_output_defaults(); slb_open_output(); rc = slb_test(argv[asgn_index]); slb_close_output(); |