aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-03-30 02:03:29 +0000
committerDavid Robillard <d@drobilla.net>2013-03-30 02:03:29 +0000
commit7c662143ede945ac5a96b95ed2d243580f00635a (patch)
treef6f9d44a6b5750dccd126be58207e1a0864c7b5e /src
parente6f2680dc5e4a5c0578a1996786099c819779053 (diff)
downloadserd-7c662143ede945ac5a96b95ed2d243580f00635a.tar.gz
serd-7c662143ede945ac5a96b95ed2d243580f00635a.tar.bz2
serd-7c662143ede945ac5a96b95ed2d243580f00635a.zip
Improve branch coverage.
git-svn-id: http://svn.drobilla.net/serd/trunk@442 490d8e77-9747-427b-9fa3-0b8f29cee8a0
Diffstat (limited to 'src')
-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;