aboutsummaryrefslogtreecommitdiffstats
path: root/src/uri.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-10 05:55:27 +0000
committerDavid Robillard <d@drobilla.net>2012-03-10 05:55:27 +0000
commit60d7a9ff146ff3c137a99b82dd75fe8f57525938 (patch)
treec2d1c42aa088f28ca4b1038f0e10aed84db18f2f /src/uri.c
parent8c2b149cb21164028feefa1574238927aac1b0b9 (diff)
downloadserd-60d7a9ff146ff3c137a99b82dd75fe8f57525938.tar.gz
serd-60d7a9ff146ff3c137a99b82dd75fe8f57525938.tar.bz2
serd-60d7a9ff146ff3c137a99b82dd75fe8f57525938.zip
Trim redundant case.
git-svn-id: http://svn.drobilla.net/serd/trunk@335 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src/uri.c')
-rw-r--r--src/uri.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/uri.c b/src/uri.c
index b67116f9..26f8ae97 100644
--- a/src/uri.c
+++ b/src/uri.c
@@ -481,10 +481,8 @@ serd_uri_serialise_relative(const SerdURI* uri,
len += sink("//", 2, stream);
len += sink(uri->authority.buf, uri->authority.len, stream);
}
- if (uri->path.buf && uri->path_base.buf) {
+ if (uri->path.buf) {
len += write_rel_path(sink, stream, &uri->path_base, &uri->path);
- } else if (uri->path.buf) {
- len += write_rel_path(sink, stream, NULL, &uri->path);
} else {
len += sink(uri->path_base.buf, uri->path_base.len, stream);
}