summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-10-03 14:57:15 +0000
committerDavid Robillard <d@drobilla.net>2015-10-03 14:57:15 +0000
commit8bbac48a4cfb64251d8a67e4c01088c9151520f5 (patch)
treedac87cbc61cf598dbb75f6441ca00f4f6c87f4fc /src
parent154437f46858502586d8e896bba3b4aac1a37cc7 (diff)
downloadsord-8bbac48a4cfb64251d8a67e4c01088c9151520f5.tar.gz
sord-8bbac48a4cfb64251d8a67e4c01088c9151520f5.tar.bz2
sord-8bbac48a4cfb64251d8a67e4c01088c9151520f5.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/sordi.c2
1 files changed, 1 insertions, 1 deletions
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);
}