diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/serd_internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serd_internal.h b/src/serd_internal.h index 3a43dd29..4c3e6397 100644 --- a/src/serd_internal.h +++ b/src/serd_internal.h @@ -269,7 +269,7 @@ uri_path_at(const SerdURI* uri, size_t i) static inline bool uri_is_under(const SerdURI* uri, const SerdURI* root) { - if (!root || !uri || !root->scheme.len || + if (!root || !root->scheme.len || !chunk_equals(&root->scheme, &uri->scheme) || !chunk_equals(&root->authority, &uri->authority)) { return false; |