aboutsummaryrefslogtreecommitdiffstats
path: root/src/uri.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-02-05 21:41:35 +0000
committerDavid Robillard <d@drobilla.net>2012-02-05 21:41:35 +0000
commit7a847c2d5dc449c416c0fa2ee7a7e05d0a241392 (patch)
treed521dafc1b96b1f7fa00a2740e06e3c9311b6d62 /src/uri.c
parent6fc94e827a02c85ff1c940f7f47ef863f2490953 (diff)
downloadserd-7a847c2d5dc449c416c0fa2ee7a7e05d0a241392.tar.gz
serd-7a847c2d5dc449c416c0fa2ee7a7e05d0a241392.tar.bz2
serd-7a847c2d5dc449c416c0fa2ee7a7e05d0a241392.zip
Update to r65/autowaf and waf-1.6.10.
git-svn-id: http://svn.drobilla.net/serd/trunk@302 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/uri.c')
-rw-r--r--src/uri.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/uri.c b/src/uri.c
index d329c4b5..fbd9e03d 100644
--- a/src/uri.c
+++ b/src/uri.c
@@ -364,8 +364,10 @@ serd_uri_serialise(const SerdURI* uri, SerdSink sink, void* stream)
} while (up > 0 && (--base_last > uri->path_base.buf));
// Write base URI prefix
- const size_t base_len = base_last - uri->path_base.buf + 1;
- WRITE(uri->path_base.buf, base_len);
+ if (*base_last == '/') {
+ const size_t base_len = base_last - uri->path_base.buf + 1;
+ WRITE(uri->path_base.buf, base_len);
+ }
} else {
// Relative path is just query or fragment, append to base URI