aboutsummaryrefslogtreecommitdiffstats
path: root/src/uri.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/uri.c')
-rw-r--r--src/uri.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/uri.c b/src/uri.c
index 3294f96e..8f3bb997 100644
--- a/src/uri.c
+++ b/src/uri.c
@@ -325,7 +325,7 @@ merge(SerdChunk* base, SerdChunk* path)
const uint8_t* begin = remove_dot_segments(path->buf, path->len, &up);
const uint8_t* end = path->buf + path->len;
- if (base->buf && base->len > 0) {
+ if (base->len) {
// Find the up'th last slash
const uint8_t* base_last = (base->buf + base->len - 1);
++up;