From 8bbac48a4cfb64251d8a67e4c01088c9151520f5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 3 Oct 2015 14:57:15 +0000 Subject: Fix using sordi with stdin Improve test coverage (100% of sordi.c). git-svn-id: http://svn.drobilla.net/sord/trunk@332 3d64ff67-21c5-427c-a301-fe4f08042e5a --- src/sordi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/sordi.c b/src/sordi.c index 6ec5faf..257315a 100644 --- a/src/sordi.c +++ b/src/sordi.c @@ -159,7 +159,7 @@ main(int argc, char** argv) if (a < argc) { // Base URI given on command line base_uri_node = serd_node_new_uri_from_string( (const uint8_t*)argv[a], NULL, &base_uri); - } else if (from_file) { // Use input file URI + } else if (in_fd != stdin && from_file) { // Use input file URI base_uri_node = serd_node_new_file_uri(in_path, NULL, &base_uri, false); } -- cgit v1.2.1