aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);
}