aboutsummaryrefslogtreecommitdiffstats
path: root/src/serdi.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-29 00:51:50 +0000
committerDavid Robillard <d@drobilla.net>2012-03-29 00:51:50 +0000
commit32da26f159e2d16218809ae3e2526ae85841787a (patch)
tree1e63acf057ef3a60760fbd85cc4e4a8c12ddc650 /src/serdi.c
parent75ad5aa2a14339a38ac6824f2039d551ab04457d (diff)
downloadserd-32da26f159e2d16218809ae3e2526ae85841787a.tar.gz
serd-32da26f159e2d16218809ae3e2526ae85841787a.tar.bz2
serd-32da26f159e2d16218809ae3e2526ae85841787a.zip
Don't break relative URIs with up-references when parsing a document with no base URI.
git-svn-id: http://svn.drobilla.net/serd/trunk@342 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/serdi.c')
-rw-r--r--src/serdi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serdi.c b/src/serdi.c
index 0236156e..74a84992 100644
--- a/src/serdi.c
+++ b/src/serdi.c
@@ -164,7 +164,7 @@ main(int argc, char** argv)
if (a < argc) { // Base URI given on command line
base = serd_node_new_uri_from_string(
(const uint8_t*)argv[a], NULL, &base_uri);
- } else if (from_file) { // Use input file URI
+ } else if (from_file && in_fd != stdin) { // Use input file URI
base = serd_node_new_file_uri(input, NULL, &base_uri, false);
}