diff options
author | David Robillard <d@drobilla.net> | 2012-03-10 05:55:27 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-03-10 05:55:27 +0000 |
commit | 60d7a9ff146ff3c137a99b82dd75fe8f57525938 (patch) | |
tree | c2d1c42aa088f28ca4b1038f0e10aed84db18f2f /src/uri.c | |
parent | 8c2b149cb21164028feefa1574238927aac1b0b9 (diff) | |
download | serd-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.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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); } |